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

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 11 Mar 2013 18:42:40 +0100
branch
5_3_x
changeset 2482
2822be40a366
parent 2479
c04205f9445f
child 2483
e9a964218c4e

Changed the install script to remove any Ui_*.py file that might exist before recreating them.
(grafted from 30477cebf8083859e2f6063211bbf751b067f4bf)

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
@@ -1106,6 +1106,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