Author pierreglaser
Recipients paul.moore, pierreglaser, pitrou, steve.dower, tim.golden, zach.ware
Date 2019-09-10.15:52:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> Dropping this into Lib/multiprocessing/ should cause a repro:

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

In this case, spawn.get_executable() will return (sys._base_executable), and `env` will be set to None anyways no? (see these lines:

We need to trigger the if clause of these lines instead, which happens by default in a virtual env -- this is why it is so troubling: even though a very simple case (launching a new process from within a virtualenv) should trigger a bug, it does not.

> And maybe submit a PR with the fix?

Will do.
Date User Action Args
2019-09-10 15:52:15pierreglasersetrecipients: + pierreglaser, paul.moore, pitrou, tim.golden, zach.ware, steve.dower
2019-09-10 15:52:15pierreglasersetmessageid: <>
2019-09-10 15:52:15pierreglaserlinkissue38092 messages
2019-09-10 15:52:15pierreglasercreate