New submission from eliben <eliben@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@bugs.python.org>
<http://bugs.python.org/issue5117>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.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@bugs.python.org>
<http://bugs.python.org/issue5117>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com