Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0be3246

Browse files
ameilyzooba
authored andcommitted
bpo-39439: Fix multiprocessing spawn path in a venv on Windows (GH-18158)
1 parent 148610d commit 0be3246

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

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)