diff -r 7a611b7aae38 Lib/os.py --- a/Lib/os.py Fri Jan 31 12:06:14 2014 -0600 +++ b/Lib/os.py Sun Feb 02 11:31:00 2014 +0530 @@ -577,6 +577,9 @@ __all__.extend(["execl","execle","execlp","execlpe","execvp","execvpe"]) def _execvpe(file, args, env=None): + #Escape all the args with double-quote if on NT + if name == 'nt': + args = [''.join(['"',a,'"']) for a in args] if env is not None: exec_func = execve argrest = (args, env)