install.py

changeset 2423
bf4e888d72ab
parent 2421
d3bf4def72d7
child 2428
11e6e63a89d0
equal deleted inserted replaced
2421:d3bf4def72d7 2423:bf4e888d72ab
402 shutil.rmtree("/Developer/Applications/Eric5") 402 shutil.rmtree("/Developer/Applications/Eric5")
403 if os.path.exists("/Applications/" + macAppBundleName): 403 if os.path.exists("/Applications/" + macAppBundleName):
404 shutil.rmtree("/Applications/" + macAppBundleName) 404 shutil.rmtree("/Applications/" + macAppBundleName)
405 405
406 except (IOError, OSError) as msg: 406 except (IOError, OSError) as msg:
407 sys.stderr.write('IOError: {0}\nTry install with admin rights.\n'.format(msg)) 407 sys.stderr.write('Error: {0}\nTry install with admin rights.\n'.format(msg))
408 exit(7) 408 exit(7)
409 409
410 410
411 def shutilCopy(src, dst, perm=0o644): 411 def shutilCopy(src, dst, perm=0o644):
412 """ 412 """
517 517
518 # create the global plugins directory 518 # create the global plugins directory
519 createGlobalPluginsDir() 519 createGlobalPluginsDir()
520 520
521 except (IOError, OSError) as msg: 521 except (IOError, OSError) as msg:
522 sys.stderr.write('IOError: {0}\nTry install with admin rights.\n'.format(msg)) 522 sys.stderr.write('Error: {0}\nTry install with admin rights.\n'.format(msg))
523 return(7) 523 return(7)
524 524
525 # copy some text files to the doc area 525 # copy some text files to the doc area
526 for name in ["LICENSE.GPL3", "THANKS", "changelog"]: 526 for name in ["LICENSE.GPL3", "THANKS", "changelog"]:
527 try: 527 try:
1085 if distDir: 1085 if distDir:
1086 shutil.rmtree(distDir, True) 1086 shutil.rmtree(distDir, True)
1087 else: 1087 else:
1088 cleanUp() 1088 cleanUp()
1089 except (IOError, OSError) as msg: 1089 except (IOError, OSError) as msg:
1090 sys.stderr.write('IOError: {0}\nTry install as root.\n'.format(msg)) 1090 sys.stderr.write('Error: {0}\nTry install as root.\n'.format(msg))
1091 exit(7) 1091 exit(7)
1092 1092
1093 # Create a config file and delete the default one 1093 # Create a config file and delete the default one
1094 createConfig() 1094 createConfig()
1095 1095

eric ide

mercurial