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

Jonathan Eldridge report at bugs.python.org
Sun Jul 7 00:07:16 CEST 2013


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 existing files and all files that have an extension.

----------

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


More information about the Python-bugs-list mailing list