[issue42041] venv subprocess call to python resolves to wrong interpreter

Eryk Sun report at bugs.python.org
Thu Oct 15 15:19:12 EDT 2020


Eryk Sun <eryksun at gmail.com> added the comment:

PR 22715 is accurate for the current implementation of subprocess. There has been discussion in past issues about implementing a PATH search that's similar to what the CMD shell does -- as in calling os.system() or Popen() with shell=True -- instead of relying on the search that WinAPI CreateProcessW implements. The resolved path would be passed as the `executable` argument, which becomes the lpApplicationName argument of CreateProcessW.

----------

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


More information about the Python-bugs-list mailing list