Mon, 15 Oct 2012 19:17:24 +0200
Changed the install location on Mac OS X to '/Applications'.
(grafted from 47999ffe018451364539d55eb5c22b0840b98c79)
install.py | file | annotate | diff | comparison | revisions | |
uninstall.py | file | annotate | diff | comparison | revisions |
--- a/install.py Mon Oct 15 19:10:17 2012 +0200 +++ b/install.py Mon Oct 15 19:17:24 2012 +0200 @@ -377,6 +377,8 @@ # delete the Mac app bundle if os.path.exists("/Developer/Applications/Eric5"): shutil.rmtree("/Developer/Applications/Eric5") + if os.path.exists("/Applications/Eric5"): + shutil.rmtree("/Applications/Eric5") except IOError as msg: sys.stderr.write('IOError: {0}\nTry install with admin rights.\n'.format(msg)) @@ -567,9 +569,9 @@ """ global cfg, sourceDir - dirs = {"contents": "/Developer/Applications/Eric5/eric5.app/Contents/", - "exe": "/Developer/Applications/Eric5/eric5.app/Contents/MacOS", - "icns": "/Developer/Applications/Eric5/eric5.app/Contents/Resources"} + dirs = {"contents": "/Applications/Eric5/eric5.app/Contents/", + "exe": "/Applications/Eric5/eric5.app/Contents/MacOS", + "icns": "/Applications/Eric5/eric5.app/Contents/Resources"} os.makedirs(dirs["contents"]) os.mkdir(dirs["exe"]) os.mkdir(dirs["icns"])
--- a/uninstall.py Mon Oct 15 19:10:17 2012 +0200 +++ b/uninstall.py Mon Oct 15 19:17:24 2012 +0200 @@ -136,6 +136,8 @@ # delete the Mac app bundle if os.path.exists("/Developer/Applications/Eric5"): shutil.rmtree("/Developer/Applications/Eric5") + if os.path.exists("/Applications/Eric5"): + shutil.rmtree("/Applications/Eric5") def main(argv):