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.txt", "THANKS", "changelog.md", "ThirdParty.rst"]: |
891 for name in ["LICENSE.txt", "THANKS", "changelog.md", "ThirdParty.md"]: |
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)) |