365 createGlobalPluginsDir() |
365 createGlobalPluginsDir() |
366 |
366 |
367 except IOError as msg: |
367 except IOError as msg: |
368 sys.stderr.write('IOError: %s\nTry install as root.\n' % msg) |
368 sys.stderr.write('IOError: %s\nTry install as root.\n' % msg) |
369 sys.exit(7) |
369 sys.exit(7) |
|
370 |
|
371 except OSError as msg: |
|
372 sys.stderr.write('OSError: %s\nTry install with admin rights.\n' % msg) |
|
373 sys.exit(7) |
370 |
374 |
371 # copy some text files to the doc area |
375 # copy some text files to the doc area |
372 for name in ["LICENSE.GPL3", "THANKS", "changelog"]: |
376 for name in ["LICENSE.GPL3", "THANKS", "changelog"]: |
373 try: |
377 try: |
374 shutil.copy('eric%s%s' % (os.sep, name), cfg['ericDocDir']) |
378 shutil.copy('eric%s%s' % (os.sep, name), cfg['ericDocDir']) |