[issue26587] Possible duplicate entries in sys.path if .pth files are used with zip's

Brett Cannon report at bugs.python.org
Fri Apr 8 18:10:20 EDT 2016


Brett Cannon added the comment:

I simplified Wolfgang's patch by simply using os.path.exists(). That eliminated the one place where os.path.isdir() was in use that was too specific to directories where files were reasonable to expect.

I also quickly tweaked the docs for the site  module in 3.5 to not promise that files would work.

If you think there is still an issue with keeping things tied together, SilentGhost, feel free to open another issue to track it.

----------
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

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


More information about the Python-bugs-list mailing list