[issue29319] Embedded 3.6.0 distribution cannot run pyz files

Steve Dower report at bugs.python.org
Sat Feb 4 18:43:35 EST 2017


Steve Dower added the comment:

That change fixes overwriting sys.path[0], the new logic is essentially:

try:
    sys_path0 = sys.path[0]
except:
    sys.path.append(argv0)
else:
    if sys_path0:
        sys.path.insert(0, argv0)
    else:
        sys.path[0] = argv0

I'm leaving this open for the better API fix for 3.7.

----------
versions:  -Python 3.5, Python 3.6

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


More information about the Python-bugs-list mailing list