Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Lib/multiprocessing/forkserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ def ensure_running(self):
'main(%d, %d, %r, **%r)')

if self._preload_modules:
desired_keys = {'main_path', 'sys_path'}
desired_keys = {'main_path': 'init_main_from_path', 'sys_path': 'sys_path'}
data = spawn.get_preparation_data('ignore')
main_kws = {x: y for x, y in data.items() if x in desired_keys}
main_kws = {x: data[y] for x, y in desired_keys.items() if y in data}
else:
main_kws = {}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix preloading of __main__ for forkserver multiprocessing.
Loading