Author: Matti Picus <matti.pi...@gmail.com>
Branch: 
Changeset: r83090:4aaefd95f635
Date: 2014-04-14 00:24 +0300
http://bitbucket.org/pypy/pypy/changeset/4aaefd95f635/

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
@@ -20,6 +20,8 @@
 def _run(executable, args, env, cwd):
     # note that this function can be *overridden* below
     # in some cases!
+    if sys.platform == 'win32':
+        executable = executable.replace('/','\\')
     if isinstance(args, str):
         args = str(executable) + ' ' + args
         shell = True
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to