When doing os.path.join('hello', '/hello', 'world')
the result will be '/hello/world'
The documentation states "If a component is an absolute path, all previous components are thrown away and joining continues from the absolute path component" So python sees '/hello' as an absolute path.
Now when you have a website and use for example <a href="/hello>hello</a>
it's a relative path?(referring to stackoverflow answer)