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

(cherry picked from commit 0be3246d4f)

Co-authored-by: Adam Meily <ameily@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2020-01-28 02:52:47 -08:00 committed by GitHub
parent cee5da8610
commit dbb37aac14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.