uninstall.py

changeset 3507
b09e10d4f343
parent 3468
869d0b6e1e16
child 3515
1b8381afe38f
--- a/uninstall.py	Sun Apr 13 16:21:30 2014 +0200
+++ b/uninstall.py	Sun Apr 13 17:29:48 2014 +0200
@@ -164,8 +164,17 @@
         # delete the Mac app bundle
         if os.path.exists("/Developer/Applications/Eric5"):
             shutil.rmtree("/Developer/Applications/Eric5")
-        if os.path.exists("/Applications/eric5.app"):
-            shutil.rmtree("/Applications/eric5.app")
+        try:
+            macAppBundlePath = getConfig("macAppBundlePath")
+            macAppBundleName = getConfig("macAppBundleName")
+        except AttributeError:
+            macAppBundlePath = "/Applications"
+            macAppBundleName = "eric5.app"
+        if os.path.exists("/Applications/" + macAppBundleName):
+            shutil.rmtree("/Applications/" + macAppBundleName)
+        bundlePath = os.path.join(macAppBundlePath, macAppBundleName)
+        if os.path.exists(bundlePath):
+            shutil.rmtree(bundlePath)
 
 
 def main(argv):

eric ide

mercurial