install.py

branch
5_1_x
changeset 1489
e647aa92e0ea
parent 1483
d608d2d4086f
child 1496
34d7a44e4c09
diff -r 000d35ce20b6 -r e647aa92e0ea install.py
--- a/install.py	Sat Dec 10 15:45:14 2011 +0100
+++ b/install.py	Sat Dec 10 18:01:16 2011 +0100
@@ -547,6 +547,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:
@@ -559,14 +564,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