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 <[email protected]>
<http://bugs.python.org/issue29319>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com