1104 # Create a config file and delete the default one |
1104 # Create a config file and delete the default one |
1105 createConfig() |
1105 createConfig() |
1106 |
1106 |
1107 # Compile .ui files |
1107 # Compile .ui files |
1108 print("Compiling user interface files...") |
1108 print("Compiling user interface files...") |
|
1109 # step 1: remove old Ui_*.py files |
|
1110 for root, _, files in os.walk(sourceDir): |
|
1111 for file in [f for f in files if fnmatch.fnmatch(f, 'Ui_*.py')]: |
|
1112 os.remove(os.path.join(root, file)) |
|
1113 # step 2: compile the forms |
1109 compileUiFiles() |
1114 compileUiFiles() |
1110 |
1115 |
1111 if doCompile: |
1116 if doCompile: |
1112 print("\nCompiling source files...") |
1117 print("\nCompiling source files...") |
1113 if distDir: |
1118 if distDir: |