install: moved the source cleanup routine to avoid deleting saved Info.py and eric6config.py files.

Tue, 18 Dec 2018 16:54:43 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 18 Dec 2018 16:54:43 +0100
changeset 6638
df711aa509d3
parent 6637
54a92e8dca00
child 6639
86f10cfa3653

install: moved the source cleanup routine to avoid deleting saved Info.py and eric6config.py files.

install.py file | annotate | diff | comparison | revisions
--- a/install.py	Tue Dec 18 15:14:28 2018 +0100
+++ b/install.py	Tue Dec 18 16:54:43 2018 +0100
@@ -1938,6 +1938,13 @@
     
     infoName = ""
     installFromSource = not os.path.isdir(sourceDir)
+    
+    # cleanup source if installing from source
+    if installFromSource:
+        print("Cleaning up source ...")
+        cleanupSource(sourceDir)
+        print()
+    
     if installFromSource:
         sourceDir = os.path.dirname(__file__) or "."
         configName = os.path.join(sourceDir, "eric6config.py")
@@ -1963,12 +1970,6 @@
     except EnvironmentError:
         pass
     
-    # cleanup source if installing from source
-    if installFromSource:
-        print("Cleaning up source ...")
-        cleanupSource(sourceDir)
-        print()
-    
     # cleanup old installation
     print("Cleaning up old installation ...")
     try:

eric ide

mercurial