Thu, 07 May 2020 18:59:26 +0200
install: fixed an issue causing a faulty application bundle being created for macOS installations when installing into a Python virtual environment.
scripts/install.py | file | annotate | diff | comparison | revisions |
--- 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: