scripts/cleanupSource.py

branch
eric7
changeset 10420
5ac83a87954d
parent 10067
e836591254ac
child 10439
21c28b0f9e41
equal deleted inserted replaced
10419:2fda68a9168d 10420:5ac83a87954d
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 [

eric ide

mercurial