[issue17639] symlinking .py files creates unexpected sys.path[0]

Nick Coghlan report at bugs.python.org
Fri Apr 5 14:14:13 CEST 2013


Nick Coghlan added the comment:

Adding Guido & Ned, as my recollection is that some of the weirdness in the sys.path[0] symlink resolution was to placate the test suite on Mac OS X (at least, that was a cause of failures in the initial runpy module implementation until Guido tracked down the discrepancy in symlink resolution between direct script execution and runpy).

How does the test suite react if you change the order of application to resolve symlinks only after dropping the file name from the path?

----------
nosy: +gvanrossum, ned.deily

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


More information about the Python-bugs-list mailing list