uninstall.py

branch
Py2 comp.
changeset 3515
1b8381afe38f
parent 3178
f25fc1364c88
parent 3507
b09e10d4f343
child 3597
137370f7114b
--- a/uninstall.py	Sun Apr 13 15:45:57 2014 +0200
+++ b/uninstall.py	Tue Apr 15 22:41:08 2014 +0200
@@ -25,7 +25,7 @@
 # Define the globals.
 progName = None
 pyModDir = None
-progLanguages = ["Python", "Ruby"]
+progLanguages = ["Python", "Ruby", "QSS"]
 
 
 def exit(rcode=0):
@@ -166,8 +166,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