876 shutilCopy(wname, cfg["bindir"], perm=0o755) |
876 shutilCopy(wname, cfg["bindir"], perm=0o755) |
877 os.remove(wname) |
877 os.remove(wname) |
878 shutil.rmtree(scriptsDir) |
878 shutil.rmtree(scriptsDir) |
879 |
879 |
880 # copy the license file |
880 # copy the license file |
881 shutilCopy(os.path.join(sourceDir, "docs", "LICENSE.GPL3"), cfg["ericDir"]) |
881 shutilCopy(os.path.join(sourceDir, "docs", "LICENSE.txt"), cfg["ericDir"]) |
882 |
882 |
883 # create the global plugins directory |
883 # create the global plugins directory |
884 createGlobalPluginsDir() |
884 createGlobalPluginsDir() |
885 |
885 |
886 except OSError as msg: |
886 except OSError as msg: |
887 sys.stderr.write("Error: {0}\nTry install with admin rights.\n".format(msg)) |
887 sys.stderr.write("Error: {0}\nTry install with admin rights.\n".format(msg)) |
888 return 7 |
888 return 7 |
889 |
889 |
890 # copy some text files to the doc area |
890 # copy some text files to the doc area |
891 for name in ["LICENSE.GPL3", "THANKS", "changelog.md", "ThirdParty.rst"]: |
891 for name in ["LICENSE.txt", "THANKS", "changelog.md", "ThirdParty.rst"]: |
892 try: |
892 try: |
893 shutilCopy(os.path.join(sourceDir, "docs", name), cfg["ericDocDir"]) |
893 shutilCopy(os.path.join(sourceDir, "docs", name), cfg["ericDocDir"]) |
894 except OSError: |
894 except OSError: |
895 print( |
895 print( |
896 "Could not install '{0}'.".format(os.path.join(sourceDir, "docs", name)) |
896 "Could not install '{0}'.".format(os.path.join(sourceDir, "docs", name)) |