[issue11378] os.path.join when second argument starts with '/' (linux/unix)

Amaury Forgeot d'Arc report at bugs.python.org
Wed Mar 2 19:04:56 CET 2011


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

And the current behaviour is useful; for example, the absolute path of a file name can be computed with os.path.join(os.getcwd(), filename).
This works with both absolute and relative paths.

os.path.join() won't change; you probably should consider another function, like os.path.normpath(a + '/' + b)

----------
nosy: +amaury.forgeotdarc
resolution:  -> invalid
stage:  -> committed/rejected
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11378>
_______________________________________


More information about the Python-bugs-list mailing list