Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r47741:a3808c44744d
Date: 2011-10-01 11:21 +0200
http://bitbucket.org/pypy/pypy/changeset/a3808c44744d/

Log:    For now, always use "python" to run trackgcroot.py. Running pypy is
        slower, particularly now that each invocation is typically 0.2-0.5
        seconds.

diff --git a/pypy/translator/c/genc.py b/pypy/translator/c/genc.py
--- a/pypy/translator/c/genc.py
+++ b/pypy/translator/c/genc.py
@@ -563,7 +563,10 @@
             else:
                 mk.definition('PYPY_MAIN_FUNCTION', "main")
 
-            if sys.platform == 'win32':
+            if (py.path.local.sysfind('python') or
+                py.path.local.sysfind('python.exe')):
+                python = 'python '
+            elif sys.platform == 'win32':
                 python = sys.executable.replace('\\', '/') + ' '
             else:
                 python = sys.executable + ' '
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to