[pypy-svn] r73026 - pypy/trunk/pypy/tool
getxsick at codespeak.net
getxsick at codespeak.net
Sun Mar 28 17:08:02 CEST 2010
Author: getxsick
Date: Sun Mar 28 17:08:00 2010
New Revision: 73026
Modified:
pypy/trunk/pypy/tool/runsubprocess.py
Log:
rollback r72975; deprecated version is better currently
Modified: pypy/trunk/pypy/tool/runsubprocess.py
==============================================================================
--- pypy/trunk/pypy/tool/runsubprocess.py (original)
+++ pypy/trunk/pypy/tool/runsubprocess.py Sun Mar 28 17:08:00 2010
@@ -44,9 +44,8 @@
# do this at import-time, when the process is still tiny
_source = os.path.dirname(os.path.abspath(__file__))
_source = os.path.join(_source, 'runsubprocess.py') # and not e.g. '.pyc'
- args = ["'%s' '%s'" % (sys.executable, _source)]
- pipe = Popen(args, stdout=PIPE, stdin=PIPE, shell=True, close_fds=True)
- (_child_stdin, _child_stdout) = (pipe.stdin, pipe.stdout)
+ _child_stdin, _child_stdout = os.popen2(
+ "'%s' '%s'" % (sys.executable, _source))
def _run(*args):
_child_stdin.write('%r\n' % (args,))
More information about the Pypy-commit
mailing list