1096 # Create a config file and delete the default one |
1096 # Create a config file and delete the default one |
1097 createConfig() |
1097 createConfig() |
1098 |
1098 |
1099 # Compile .ui files |
1099 # Compile .ui files |
1100 print("Compiling user interface files...") |
1100 print("Compiling user interface files...") |
|
1101 # step 1: remove old Ui_*.py files |
|
1102 for root, _, files in os.walk(sourceDir): |
|
1103 for file in [f for f in files if fnmatch.fnmatch(f, 'Ui_*.py')]: |
|
1104 os.remove(os.path.join(root, file)) |
|
1105 # step 2: compile the forms |
1101 compileUiFiles() |
1106 compileUiFiles() |
1102 |
1107 |
1103 if doCompile: |
1108 if doCompile: |
1104 print("\nCompiling source files...") |
1109 print("\nCompiling source files...") |
1105 if distDir: |
1110 if distDir: |