Ben Hoyt added the comment:
Sorry, but this is operating as designed and documented. See the docs here:
https://docs.python.org/3.4/library/os.path.html#os.path.join
On Windows ... since there is a current directory for each drive,
os.path.join(c:, foo) represents a path relative to the
New submission from Eugene Bright:
Hello!
I found strange os.path.join() behavior on Windows.
It works fine in common case.
os.path.join(C, filename)
'C\\filename'
But if first argument is C: there are no backslashes added at all!
os.path.join(C:, filename)
'C:filename'
But I expect two
Eric V. Smith added the comment:
I agree this isn't a bug, due to per-drive current directories on Windows.
--
nosy: +eric.smith
resolution: - not a bug
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Eugene Bright hex...@gmail.com:
--
type: - behavior
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23535
___
___
Eugene Bright added the comment:
Sorry for disturbing.
I'll read docs more careful next time.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23535
___