scripts/install.py

changeset 6960
1d4e02425869
parent 6956
dfd3b53be436
child 7039
73cb6384a71f
--- a/scripts/install.py	Sat Apr 20 19:41:19 2019 +0200
+++ b/scripts/install.py	Sat Apr 20 19:46:32 2019 +0200
@@ -929,8 +929,8 @@
             shutilCopy(os.path.join(sourceDir, "others", name),
                        cfg['ericOthersDir'])
         except EnvironmentError:
-            print("Could not install '{2}{0}others{0}{1}'.".format(
-                os.path.join(sourceDir, "docs", name)))
+            print("Could not install '{0}'.".format(
+                os.path.join(sourceDir, "others", name)))
     
     # install the API file
     if installApis:
@@ -1322,13 +1322,15 @@
     apis = []
     if installApis:
         for progLanguage in progLanguages:
-            for apiName in sorted(glob.glob(
-                    os.path.join(eric6SourceDir, "APIs", progLanguage, "*.api"))):
+            for apiName in sorted(
+                glob.glob(os.path.join(eric6SourceDir, "APIs", progLanguage,
+                                       "*.api"))):
                 apis.append(os.path.basename(apiName))
             if progLanguage == "Python":
                 # treat Python3 API files the same as Python API files
-                for apiName in sorted(glob.glob(
-                        os.path.join(eric6SourceDir, "APIs", "Python3", "*.api"))):
+                for apiName in sorted(
+                    glob.glob(os.path.join(eric6SourceDir, "APIs", "Python3",
+                                           "*.api"))):
                     apis.append(os.path.basename(apiName))
     
     config = (

eric ide

mercurial