Message94744
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. |
|
Date |
User |
Action |
Args |
2009-10-31 05:00:32 | ncoghlan | set | recipients:
+ ncoghlan, jaraco |
2009-10-31 05:00:32 | ncoghlan | set | messageid: <1256965232.25.0.733954891053.issue7195@psf.upfronthosting.co.za> |
2009-10-31 05:00:30 | ncoghlan | link | issue7195 messages |
2009-10-31 05:00:30 | ncoghlan | create | |
|