bpo-39439: Fix multiprocessing spawn path in a venv on Windows (GH-18158)

This commit is contained in:
Adam Meily 2020-01-28 05:34:23 -05:00 committed by Steve Dower
parent 148610d88a
commit 0be3246d4f
2 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,7 @@ else:
if WINSERVICE:
_python_exe = os.path.join(sys.exec_prefix, 'python.exe')
else:
_python_exe = sys._base_executable
_python_exe = sys.executable
def set_executable(exe):
global _python_exe

View File

@ -0,0 +1 @@
Honor the Python path when a virtualenv is active on Windows.