summaryrefslogtreecommitdiffstats
path: root/Lib/subprocess.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2017-03-02 08:03:41 (GMT)
committerGitHub <noreply@github.com>2017-03-02 08:03:41 (GMT)
commitcb90f261226fc2d4db60a68b53a788e8ae5905cf (patch)
tree9cad32ede4cd213af21faabe91abb42c59bb7717 /Lib/subprocess.py
parentafbb5d1cbd291e36853249a143ca7db6949fd8ea (diff)
downloadcpython-cb90f261226fc2d4db60a68b53a788e8ae5905cf.zip
cpython-cb90f261226fc2d4db60a68b53a788e8ae5905cf.tar.gz
cpython-cb90f261226fc2d4db60a68b53a788e8ae5905cf.tar.bz2
fix subprocess on Windows (#391)
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r--Lib/subprocess.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index 23e9bd3..76c340c 100644
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -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