[New-bugs-announce] [issue5117] os.path.relpath problem with root drive directory on windows

eliben report at bugs.python.org
Sat Jan 31 08:25:52 CET 2009


New submission from eliben <eliben at gmail.com>:

This is correct:

relpath(r'd:\abc\jho', r'd:\abc')
=> 'jho'

But this isn't:
relpath(r'd:\jho', r'd:\\')
=> '..\jho'

Neither is this:
relpath(r'd:\jho', r'd:')
=> '..\..\..\jho'

----------
components: Library (Lib)
messages: 80860
nosy: eliben
severity: normal
status: open
title: os.path.relpath problem with root drive directory on windows
type: behavior
versions: Python 2.6

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


More information about the New-bugs-announce mailing list