Nick Coghlan <ncogh...@gmail.com> added the comment: It's not the current directory that's the problem, it's the current drive. Windows has no absolute root directory - instead, it has a root directory for each drive. That means that "\\dir" is a path relative to the current drive rather than an absolute path. You need to put the drive letter in there to make it an absolute path.
That's just a fact of life when working with the windows file system, rather than anything specific to Python or os.path.relpath. ---------- nosy: +ncoghlan resolution: -> invalid status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7195> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com