Changed the install script to remove any Ui_*.py file that might exist before recreating them.

Mon, 11 Mar 2013 18:42:40 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 11 Mar 2013 18:42:40 +0100
changeset 2480
30477cebf808
parent 2478
c4d8d795d356
child 2481
60da8e6c0547

Changed the install script to remove any Ui_*.py file that might exist before recreating them.

install.py file | annotate | diff | comparison | revisions
--- a/install.py	Sun Mar 10 19:30:38 2013 +0100
+++ b/install.py	Mon Mar 11 18:42:40 2013 +0100
@@ -1098,6 +1098,11 @@
 
     # Compile .ui files
     print("Compiling user interface files...")
+    # step 1: remove old Ui_*.py files
+    for root, _, files in os.walk(sourceDir):
+        for file in [f for f in files if fnmatch.fnmatch(f, 'Ui_*.py')]:
+            os.remove(os.path.join(root, file))
+    # step 2: compile the forms
     compileUiFiles()
     
     if doCompile:

eric ide

mercurial