Merge 3.4.
This commit is contained in:
commit
91e7f04fc5
|
@ -80,8 +80,8 @@ def get_command_line(**kwds):
|
||||||
Returns prefix of command line used for spawning a child process
|
Returns prefix of command line used for spawning a child process
|
||||||
'''
|
'''
|
||||||
if getattr(sys, 'frozen', False):
|
if getattr(sys, 'frozen', False):
|
||||||
tmp = ' '.join('%s=%r' % item for item in kwds.items())
|
return ([sys.executable, '--multiprocessing-fork'] +
|
||||||
return [sys.executable, '--multiprocessing-fork'] + tmp
|
['%s=%r' % item for item in kwds.items()])
|
||||||
else:
|
else:
|
||||||
prog = 'from multiprocessing.spawn import spawn_main; spawn_main(%s)'
|
prog = 'from multiprocessing.spawn import spawn_main; spawn_main(%s)'
|
||||||
prog %= ', '.join('%s=%r' % item for item in kwds.items())
|
prog %= ', '.join('%s=%r' % item for item in kwds.items())
|
||||||
|
|
Loading…
Reference in New Issue