Merged with changes done on macOS.

Fri, 08 May 2020 18:11:09 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 08 May 2020 18:11:09 +0200
changeset 7587
635f4f018e76
parent 7586
9ca5907d5ed3 (current diff)
parent 7584
328d92d8db48 (diff)
child 7588
881eebfefd34

Merged with changes done on macOS.

--- a/scripts/install.py	Fri May 08 18:10:05 2020 +0200
+++ b/scripts/install.py	Fri May 08 18:11:09 2020 +0200
@@ -48,6 +48,8 @@
 defaultMacAppBundlePath = "/Applications"
 defaultMacPythonExe = "{0}/Resources/Python.app/Contents/MacOS/Python".format(
     sys.exec_prefix)
+if not os.path.exists(defaultMacPythonExe):
+    defaultMacPythonExe = ""
 macAppBundleName = defaultMacAppBundleName
 macAppBundlePath = defaultMacAppBundlePath
 macPythonExe = defaultMacPythonExe
@@ -1074,7 +1076,7 @@
         if not os.path.exists(directory):
             os.makedirs(directory)
     
-    if macPythonExe == defaultMacPythonExe:
+    if macPythonExe == defaultMacPythonExe and macPythonExe:
         starter = os.path.join(directories["exe"], "eric")
         os.symlink(macPythonExe, starter)
     else:

eric ide

mercurial