]> granicus.if.org Git - python/commitdiff
fix subprocess on Windows (#391)
authorBenjamin Peterson <benjamin@python.org>
Thu, 2 Mar 2017 08:03:41 +0000 (00:03 -0800)
committerGitHub <noreply@github.com>
Thu, 2 Mar 2017 08:03:41 +0000 (00:03 -0800)
Lib/subprocess.py

index 23e9bd328c12818f0a022e9ae8fccda3e6e83dff..76c340c87970aa80a592a7c08f0ac23884a2cd6b 100644 (file)
@@ -988,7 +988,7 @@ class Popen(object):
                                          int(not close_fds),
                                          creationflags,
                                          env,
-                                         os.fspath(cwd),
+                                         os.fspath(cwd) if cwd is not None else None,
                                          startupinfo)
             finally:
                 # Child is launched. Close the parent's copy of those pipe