Message351670
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? |
|
Date |
User |
Action |
Args |
2019-09-10 14:21:23 | steve.dower | set | recipients:
+ steve.dower, paul.moore, pitrou, tim.golden, zach.ware, pierreglaser |
2019-09-10 14:21:23 | steve.dower | set | messageid: <1568125283.32.0.419203526001.issue38092@roundup.psfhosted.org> |
2019-09-10 14:21:23 | steve.dower | link | issue38092 messages |
2019-09-10 14:21:23 | steve.dower | create | |
|