Skip to content

Commit

Permalink
bpo-39439: Fix multiprocessing spawn path in a venv on Windows (GH-18158
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ameily authored and zooba committed Jan 28, 2020
1 parent 148610d commit 0be3246
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/multiprocessing/spawn.py
Expand Up @@ -36,7 +36,7 @@
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
Expand Down
@@ -0,0 +1 @@
Honor the Python path when a virtualenv is active on Windows.

1 comment on commit 0be3246

@zemenfes-afk
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't understand with this code
if sys.platform != 'win32':
WINEXE = False
WINSERVICE = False

Please sign in to comment.