[issue1742] os.path.relpath fails when path == start

2008-01-06 Thread Jesse Towner
Changes by Jesse Towner: -- components: Library (Lib) nosy: townerj severity: major status: open title: os.path.relpath fails when path == start type: behavior versions: Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1742

[issue1742] os.path.relpath fails when path == start

2008-01-06 Thread Jesse Towner
New submission from Jesse Towner: os.path.relpath fails with an exception on both Windows and Unix systems (ntpath and posixpath modules) when the given path and the start path are equal. Better behavior here might be to return an empty string or perhaps os.path.curdir. os.path.relpath(test