install.py

branch
5_2_x
changeset 2141
c4966c4d010f
parent 1966
6e8945315cbc
child 2146
f42f336525dd
equal deleted inserted replaced
2139:a7ebeff68ab6 2141:c4966c4d010f
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"):
381 shutil.rmtree("/Applications/Eric5")
380 382
381 except IOError as msg: 383 except IOError as msg:
382 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))
383 exit(7) 385 exit(7)
384 386
565 @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
566 be installed (string) 568 be installed (string)
567 """ 569 """
568 global cfg, sourceDir 570 global cfg, sourceDir
569 571
570 dirs = {"contents": "/Developer/Applications/Eric5/eric5.app/Contents/", 572 dirs = {"contents": "/Applications/Eric5/eric5.app/Contents/",
571 "exe": "/Developer/Applications/Eric5/eric5.app/Contents/MacOS", 573 "exe": "/Applications/Eric5/eric5.app/Contents/MacOS",
572 "icns": "/Developer/Applications/Eric5/eric5.app/Contents/Resources"} 574 "icns": "/Applications/Eric5/eric5.app/Contents/Resources"}
573 os.makedirs(dirs["contents"]) 575 os.makedirs(dirs["contents"])
574 os.mkdir(dirs["exe"]) 576 os.mkdir(dirs["exe"])
575 os.mkdir(dirs["icns"]) 577 os.mkdir(dirs["icns"])
576 578
577 starter = os.path.join(dirs["exe"], "eric") 579 starter = os.path.join(dirs["exe"], "eric")

eric ide

mercurial