Slight modificytion to the install script to handle cleanup a bit better. eric7

Thu, 14 Jul 2022 11:19:59 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 14 Jul 2022 11:19:59 +0200
branch
eric7
changeset 9231
d92a18dffa5e
parent 9230
70f269d529e4
child 9232
a1c564d995ce

Slight modificytion to the install script to handle cleanup a bit better.

scripts/install.py file | annotate | diff | comparison | revisions
--- a/scripts/install.py	Thu Jul 14 10:21:36 2022 +0200
+++ b/scripts/install.py	Thu Jul 14 11:19:59 2022 +0200
@@ -2188,15 +2188,15 @@
         sourceDir = os.path.abspath("..")
 
     eric7SourceDir = (
-        os.path.join(sourceDir, "eric7")
-        if os.path.exists(os.path.join(sourceDir, "eric7"))
-        else os.path.join(sourceDir, "src", "eric7")
+        os.path.join(sourceDir, "src", "eric7")
+        if os.path.exists(os.path.join(sourceDir, "src", "eric7"))
+        else os.path.join(sourceDir, "eric7")
     )
 
     # cleanup source if installing from source
     if installFromSource:
         print("Cleaning up source ...")
-        cleanupSource(eric7SourceDir)
+        cleanupSource(sourceDir)
         print()
 
         configName = os.path.join(eric7SourceDir, "eric7config.py")

eric ide

mercurial