Jonathan Eldridge added the comment:
At the very least, the documentation should be updated to explain this.
--
___
Python tracker
<http://bugs.python.org/issue18
Jonathan Eldridge added the comment:
Seems like you could also narrow the case where the incorrect behavior occurs
for files without an extension by doing a os.path.isfile check as well--that
will only return True for cases where the file exists, but then relpath could
work correctly for all
Changes by Jonathan Eldridge :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue18389>
___
___
Python-bugs-list mailing list
Unsubscri
New submission from Jonathan Eldridge:
With the following directory structure:
computer$ ls
foo/
computer$ ls foo/
bar/ foo_file.txt
computer$ ls foo/bar/
bar_file.txt
Running:
os.path.relpath('foo/bar/bar_file.txt', 'foo/foo_file.txt')
R