[issue7195] Value error 'path is on drive c: start on drive d:' in os.path.relpath

Nick Coghlan report at bugs.python.org
Sat Oct 31 15:53:47 CET 2009


Nick Coghlan <ncoghlan at gmail.com> added the comment:

The path *returned* is relative to the start point. The target path is
figured out normally (i.e. relative to the current directory if an
absolute path is not given).

In your example, you aren't passing in an absolute Windows path - you
give a path relative to the current drive (since no drive is specified).

Windows file pathing is hopeless, but it isn't the job of Python's
documentation to explain its quirks.

----------

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


More information about the Python-bugs-list mailing list