[pypy-commit] pypy py3k: help Popen find executable on win32
mattip
noreply at buildbot.pypy.org
Sun Apr 13 23:33:39 CEST 2014
Author: Matti Picus <matti.picus at gmail.com>
Branch: py3k
Changeset: r70621:590ba2c6714c
Date: 2014-04-14 00:24 +0300
http://bitbucket.org/pypy/pypy/changeset/590ba2c6714c/
Log: help Popen find executable on win32
diff --git a/rpython/tool/runsubprocess.py b/rpython/tool/runsubprocess.py
--- a/rpython/tool/runsubprocess.py
+++ b/rpython/tool/runsubprocess.py
@@ -16,6 +16,8 @@
shell_default = True
def _run(executable, args, env, cwd): # unless overridden below
+ if sys.platform == 'win32':
+ executable = executable.replace('/','\\')
if isinstance(args, str):
args = str(executable) + ' ' + args
shell = True
More information about the pypy-commit
mailing list