scripts/install.py

changeset 7584
328d92d8db48
parent 7566
7845da7a7ec2
child 7607
dd1054be15aa
child 7628
f904d0eef264
--- a/scripts/install.py	Wed May 06 18:15:52 2020 +0200
+++ b/scripts/install.py	Thu May 07 18:59:26 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