16 def cleanupSource(dirName): |
16 def cleanupSource(dirName): |
17 """ |
17 """ |
18 Cleanup the sources directory to get rid of leftover files |
18 Cleanup the sources directory to get rid of leftover files |
19 and directories. |
19 and directories. |
20 |
20 |
21 @param dirName name of the directory to prune (string) |
21 @param dirName name of the directory to prune |
|
22 @type str |
22 """ |
23 """ |
23 # step 1: delete all Ui_*.py files without a corresponding |
24 # step 1: delete all Ui_*.py files without a corresponding |
24 # *.ui file |
25 # *.ui file |
25 dirListing = os.listdir(dirName) |
26 dirListing = os.listdir(dirName) |
26 for formName, sourceName in [ |
27 for formName, sourceName in [ |