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

Nick Coghlan report at bugs.python.org
Sun Nov 1 02:23:21 CET 2009


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

os.relpath *does* give you a relative path between two directories.

The problem you are encountering is that, on Windows, a relative path
doesn't even *exist* if the two directories are on different drives
(which is exactly what the error message says).

----------

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


More information about the Python-bugs-list mailing list