Fixed the install script again.

Sun, 13 Apr 2014 17:40:51 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 13 Apr 2014 17:40:51 +0200
changeset 3509
bf0673c8f155
parent 3508
4861f0bb3509
child 3510
31d7e522ecb2

Fixed the install script again.

install.py file | annotate | diff | comparison | revisions
--- a/install.py	Sun Apr 13 17:35:21 2014 +0200
+++ b/install.py	Sun Apr 13 17:40:51 2014 +0200
@@ -422,10 +422,17 @@
             # delete the Mac app bundle
             if os.path.exists("/Developer/Applications/Eric5"):
                 shutil.rmtree("/Developer/Applications/Eric5")
-            if os.path.exists(
-                    os.path.join(macAppBundlePath, macAppBundleName)):
-                shutil.rmtree(
-                    os.path.join(macAppBundlePath, macAppBundleName))
+            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)
         
     except (IOError, OSError) as msg:
         sys.stderr.write(

eric ide

mercurial