[issue18389] os.path.relpath gives incorrect results if start parameters is not a directory

2013-07-09 Thread Jonathan Eldridge
Jonathan Eldridge added the comment: At the very least, the documentation should be updated to explain this. -- ___ Python tracker <http://bugs.python.org/issue18

[issue18389] os.path.relpath gives incorrect results if start parameters is not a directory

2013-07-06 Thread Jonathan Eldridge
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

[issue18389] os.path.relpath gives incorrect results if start parameters is not a directory

2013-07-06 Thread Jonathan Eldridge
Changes by Jonathan Eldridge : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue18389> ___ ___ Python-bugs-list mailing list Unsubscri

[issue18389] os.path.relpath gives incorrect results if start parameters is not a directory

2013-07-06 Thread Jonathan Eldridge
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