scripts/install.py

branch
eric7
changeset 10261
fa560567d555
parent 10192
f457742dd3d6
child 10264
f06151820839
diff -r 43528a30213a -r fa560567d555 scripts/install.py
--- a/scripts/install.py	Fri Oct 27 14:43:37 2023 +0200
+++ b/scripts/install.py	Sat Oct 28 13:15:37 2023 +0200
@@ -53,7 +53,10 @@
 eric7SourceDir = ""
 configName = "eric7config.py"
 defaultMacAppBundleName = "eric7.app"
-defaultMacAppBundlePath = "/Applications"
+if os.getuid() == 0:
+    defaultMacAppBundlePath = "/Applications"
+else:
+    defaultMacAppBundlePath = os.path.expanduser("~/Applications")
 defaultMacPythonExe = "{0}/Resources/Python.app/Contents/MacOS/Python".format(
     sys.exec_prefix
 )

eric ide

mercurial