This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steve.dower
Recipients paul.moore, pierreglaser, pitrou, steve.dower, tim.golden, zach.ware
Date 2019-09-10.14:21:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1568125283.32.0.419203526001.issue38092@roundup.psfhosted.org>
In-reply-to
Content
Yeah, very strange that. I can only assume that it's launching the venv redirector directly, rather than the real sys.executable, and we aren't ever calling set_executable() with the real one anymore.

Dropping this into Lib/multiprocessing/spawn.py should cause a repro:

if WINSERVICE:
    _python_exe = os.path.join(sys.exec_prefix, 'python.exe')
else:
    _python_exe = getattr(sys, '_base_executable', sys.executable)

And as you point out, fixing the CreateProcess call should provide a fix.

Could you try that? And maybe submit a PR with the fix?
History
Date User Action Args
2019-09-10 14:21:23steve.dowersetrecipients: + steve.dower, paul.moore, pitrou, tim.golden, zach.ware, pierreglaser
2019-09-10 14:21:23steve.dowersetmessageid: <1568125283.32.0.419203526001.issue38092@roundup.psfhosted.org>
2019-09-10 14:21:23steve.dowerlinkissue38092 messages
2019-09-10 14:21:23steve.dowercreate