install.py

branch
5_3_x
changeset 2637
066683ed6976
parent 2611
dd77cc80e343
child 2638
11b930473425
--- a/install.py	Mon Apr 22 20:31:17 2013 +0200
+++ b/install.py	Wed Apr 24 19:44:41 2013 +0200
@@ -225,12 +225,15 @@
 
     # Mac OS X
     elif sys.platform == "darwin":
+        pyexec = "{0}/bin/pythonw3".format(sys.exec_prefix)
+        if not os.path.exists(pyexec):
+            pyexec = "{0}/bin/python3".format(sys.exec_prefix)
         wname = wfile
         wrapper = \
 '''#!/bin/sh
 
-exec "{0}/bin/pythonw3" "{1}/{2}.py" "$@"
-'''.format(sys.exec_prefix, pydir, wfile)
+exec "{0}" "{1}/{2}.py" "$@"
+'''.format(pyexec, pydir, wfile)
 
     # *nix systems
     else:

eric ide

mercurial