Nick Coghlan <ncogh...@gmail.com> added the comment: Thanks Larry - I've reduced the priority accordingly.
While the NEWS entry sounds a bit complicated, the actual fix is nicely self-contained: it's all within Modules/main.c, and relates to how that manipulates sys.argv[0] during startup. Historically, the code would put a potentially incorrect entry into sys.path[0], then amend it later (and that amendment step could sometimes do the wrong thing), but after this patch, it stores the candidate entry in a local C variable and adds it to the path only after it knows it's correct to do so. The backport also comes with test cases to ensure everything's working as we expect, and this is the code that 3.6 has been using since its release. ---------- priority: release blocker -> normal _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32551> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com