install.py: fixed some code style issues.

Sat, 20 Apr 2019 19:46:32 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 20 Apr 2019 19:46:32 +0200
changeset 6960
1d4e02425869
parent 6959
dfb8a57de154
child 6962
1dec9d06dd7b

install.py: fixed some code style issues.

scripts/install.py file | annotate | diff | comparison | revisions
diff -r dfb8a57de154 -r 1d4e02425869 scripts/install.py
--- 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