install.py

branch
5_2_x
changeset 2146
f42f336525dd
parent 2141
c4966c4d010f
child 2161
32591cea4dba
equal deleted inserted replaced
2141:c4966c4d010f 2146:f42f336525dd
375 375
376 if sys.platform == "darwin": 376 if sys.platform == "darwin":
377 # delete the Mac app bundle 377 # delete the Mac app bundle
378 if os.path.exists("/Developer/Applications/Eric5"): 378 if os.path.exists("/Developer/Applications/Eric5"):
379 shutil.rmtree("/Developer/Applications/Eric5") 379 shutil.rmtree("/Developer/Applications/Eric5")
380 if os.path.exists("/Applications/Eric5"): 380 if os.path.exists("/Applications/eric5.app"):
381 shutil.rmtree("/Applications/Eric5") 381 shutil.rmtree("/Applications/eric5.app")
382 382
383 except IOError as msg: 383 except IOError as msg:
384 sys.stderr.write('IOError: {0}\nTry install with admin rights.\n'.format(msg)) 384 sys.stderr.write('IOError: {0}\nTry install with admin rights.\n'.format(msg))
385 exit(7) 385 exit(7)
386 386
567 @param pydir the name of the directory where the Python script will eventually 567 @param pydir the name of the directory where the Python script will eventually
568 be installed (string) 568 be installed (string)
569 """ 569 """
570 global cfg, sourceDir 570 global cfg, sourceDir
571 571
572 dirs = {"contents": "/Applications/Eric5/eric5.app/Contents/", 572 dirs = {"contents": "/Applications/eric5.app/Contents/",
573 "exe": "/Applications/Eric5/eric5.app/Contents/MacOS", 573 "exe": "/Applications/eric5.app/Contents/MacOS",
574 "icns": "/Applications/Eric5/eric5.app/Contents/Resources"} 574 "icns": "/Applications/eric5.app/Contents/Resources"}
575 os.makedirs(dirs["contents"]) 575 os.makedirs(dirs["contents"])
576 os.mkdir(dirs["exe"]) 576 os.mkdir(dirs["exe"])
577 os.mkdir(dirs["icns"]) 577 os.mkdir(dirs["icns"])
578 578
579 starter = os.path.join(dirs["exe"], "eric") 579 starter = os.path.join(dirs["exe"], "eric")

eric ide

mercurial