--- 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: