install.py

changeset 1488
de290ce82a75
parent 1474
1eaec11a0078
child 1495
fa0f2cdd245b
diff -r 1ca38aa46ae7 -r de290ce82a75 install.py
--- a/install.py	Sat Dec 10 15:45:14 2011 +0100
+++ b/install.py	Sat Dec 10 18:01:16 2011 +0100
@@ -549,6 +549,11 @@
     os.mkdir(dirs["exe"])
     os.mkdir(dirs["icns"])
     
+    starter = os.path.join(dirs["exe"], "eric")
+    os.symlink(
+        "{0}/Resources/Python.app/Contents/MacOS/Python".format(sys.exec_prefix),
+        starter)
+    
     wname = os.path.join(dirs["exe"], "eric5")
     path = os.getenv("PATH", "")
     if path:
@@ -561,14 +566,14 @@
 '''#!/bin/sh
 
 PATH={0}
-exec "{1}/bin/pythonw3" "{2}/{3}.py" "$@"
-'''.format(path, sys.exec_prefix, pydir, "eric5")
+exec "{1}" "{2}/{3}.py" "$@"
+'''.format(path, starter, pydir, "eric5")
     else:
         wrapper = \
 '''#!/bin/sh
 
-exec "{0}/bin/pythonw3" "{1}/{2}.py" "$@"
-'''.format(sys.exec_prefix, pydir, "eric5")
+exec "{0}" "{1}/{2}.py" "$@"
+'''.format(starter, pydir, "eric5")
     copyToFile(wname, wrapper)
     os.chmod(wname, 0o755)
     

eric ide

mercurial