[pypy-svn] r45982 - pypy/dist/pypy/translator

antocuni at codespeak.net antocuni at codespeak.net
Sat Aug 25 15:57:37 CEST 2007


Author: antocuni
Date: Sat Aug 25 15:57:36 2007
New Revision: 45982

Modified:
   pypy/dist/pypy/translator/driver.py
Log:
don't use mono but run main.exe directly when running under cygwin



Modified: pypy/dist/pypy/translator/driver.py
==============================================================================
--- pypy/dist/pypy/translator/driver.py	(original)
+++ pypy/dist/pypy/translator/driver.py	Sat Aug 25 15:57:36 2007
@@ -683,7 +683,8 @@
         newexename = basename
         f = file(newexename, 'w')
         f.write("""#!/bin/bash
-mono "$(dirname $0)/$(basename $0)-data/%s" "$@" # XXX doesn't work if it's placed in PATH
+if [ `uname -o` = 'Cygwin' ]; then MONO=; else MONO=mono; fi
+$MONO "$(dirname $0)/$(basename $0)-data/%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-commit mailing list