Finally managed the issue with showing the correct name for the Mac OS X application menu entry in the main menu bar.

Sat, 10 Dec 2011 18:01:16 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 10 Dec 2011 18:01:16 +0100
changeset 1488
de290ce82a75
parent 1486
1ca38aa46ae7
child 1490
ed6f2208297d

Finally managed the issue with showing the correct name for the Mac OS X application menu entry in the main menu bar.

install.py file | annotate | diff | comparison | revisions
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