[pypy-svn] r35545 - pypy/dist/pypy/translator
antocuni at codespeak.net
antocuni at codespeak.net
Sun Dec 10 12:01:15 CET 2006
Author: antocuni
Date: Sun Dec 10 12:01:14 2006
New Revision: 35545
Modified:
pypy/dist/pypy/translator/driver.py
Log:
Don't change the cwd when executing pypy.net.
Modified: pypy/dist/pypy/translator/driver.py
==============================================================================
--- pypy/dist/pypy/translator/driver.py (original)
+++ pypy/dist/pypy/translator/driver.py Sun Dec 10 12:01:14 2006
@@ -601,8 +601,7 @@
newexename = './' + newexename
f = file(newexename, 'w')
f.write("""#!/bin/bash
-cd `dirname $0` # XXX doesn't work if it's placed in PATH
-mono "%s" "$@"
+mono "$(dirname $0)/%s" "$@" # XXX doesn't work if it's placed in PATH
""" % main_exe_name)
f.close()
os.chmod(newexename, 0755)
More information about the pypy-svn
mailing list