We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2677dd0 commit ec33463Copy full SHA for ec33463
1 file changed
Lib/multiprocessing/forkserver.py
@@ -145,12 +145,13 @@ def ensure_running(self):
145
cmd = ('from multiprocessing.forkserver import main; ' +
146
'main(%d, %d, %r, **%r)')
147
148
+ main_kws = {}
149
if self._preload_modules:
- desired_keys = {'main_path', 'sys_path'}
150
data = spawn.get_preparation_data('ignore')
151
- main_kws = {x: y for x, y in data.items() if x in desired_keys}
152
- else:
153
- main_kws = {}
+ if 'sys_path' in data:
+ main_kws['sys_path'] = data['sys_path']
+ if 'init_main_from_path' in data:
154
+ main_kws['main_path'] = data['init_main_from_path']
155
156
with socket.socket(socket.AF_UNIX) as listener:
157
address = connection.arbitrary_address('AF_UNIX')
0 commit comments