Skip to content

Commit dbb37aa

Browse files
bpo-39439: Fix multiprocessing spawn path in a venv on Windows (GH-18158)
(cherry picked from commit 0be3246) Co-authored-by: Adam Meily <ameily@users.noreply.github.com>
1 parent cee5da8 commit dbb37aa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Lib/multiprocessing/spawn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
if WINSERVICE:
3737
_python_exe = os.path.join(sys.exec_prefix, 'python.exe')
3838
else:
39-
_python_exe = sys._base_executable
39+
_python_exe = sys.executable
4040

4141
def set_executable(exe):
4242
global _python_exe
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Honor the Python path when a virtualenv is active on Windows.

0 commit comments

Comments
 (0)