scripts/uninstall.py

branch
eric7
changeset 10261
fa560567d555
parent 10091
ac6edcfe7831
child 10264
f06151820839
--- a/scripts/uninstall.py	Fri Oct 27 14:43:37 2023 +0200
+++ b/scripts/uninstall.py	Sat Oct 28 13:15:37 2023 +0200
@@ -24,7 +24,10 @@
 pyModDir = None
 progLanguages = ["MicroPython", "Python3", "QSS"]
 defaultMacAppBundleName = "eric7.app"
-defaultMacAppBundlePath = "/Applications"
+if os.getuid() == 0:
+    defaultMacAppBundlePath = "/Applications"
+else:
+    defaultMacAppBundlePath = os.path.expanduser("~/Applications")
 settingsNameOrganization = "Eric7"
 settingsNameGlobal = "eric7"
 

eric ide

mercurial