[issue29723] 3.6.1rc1 adds the current directory to sys.path when running a subdirectory's __main__.py; previous versions did not

Steve Dower report at bugs.python.org
Wed Mar 8 00:23:58 EST 2017


Steve Dower added the comment:

It's actually "adding" the current directory by not replacing the empty string that's normally there, presumably because it's already been resolved into a path at this stage. The behavior on Windows is correct, so I expect it's actually a difference between getpath.c and getpathp.c, rather than an isolated/non-isolated mode issue.

I'll try and take a look - my plate is fairly full over the next few weeks though, so if anyone is able to help out I'd appreciate it, especially since it's not my usual platform.

----------

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


More information about the Python-bugs-list mailing list