[issue39439] Windows Multiprocessing in Virtualenv: sys.prefix is incorrect

Adam Meily report at bugs.python.org
Thu Jan 23 20:25:06 EST 2020


Adam Meily <meily.adam at gmail.com> added the comment:

OK, that makes sense.

For 3.7, I can create a PR for that corrects the order of arguments passed into _winapi.CreateProcess

For 3.8 / master, the problem appears to be that the check in popen_spawn_win32.py to set the subprocess env is failing because sys.executable != spawn.get_executable() -- spawn.get_executable() is returning sys._base_executable. So, can you confirm that the fix is to just change spawn.get_executable() to return sys.executable, like it was prior to the PR mentioned in the other ticket?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39439>
_______________________________________


More information about the Python-bugs-list mailing list