mirror of
https://github.com/python/cpython.git
synced 2024-11-24 18:34:43 +08:00
merged win spawn patch
This commit is contained in:
parent
898a365c27
commit
4eb286874f
@ -42,7 +42,7 @@ elif hasattr(os, 'spawnv'):
|
||||
# kill_zombies function is a noop.
|
||||
|
||||
def spawn(bin, *args):
|
||||
nargs = [bin]
|
||||
nargs = ['"'+bin+'"']
|
||||
for arg in args:
|
||||
nargs.append( '"'+arg+'"' )
|
||||
os.spawnv( os.P_NOWAIT, bin, nargs )
|
||||
|
Loading…
Reference in New Issue
Block a user