scripts/cleanupSource.py

branch
eric7-maintenance
changeset 10460
3b34efa2857c
parent 10439
21c28b0f9e41
child 11090
f5f5f5803935
equal deleted inserted replaced
10366:411df92e881f 10460:3b34efa2857c
1 #!/usr/bin/env python3 1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*- 2 # -*- coding: utf-8 -*-
3 3
4 # Copyright (c) 2014 - 2023 Detlev Offenbach <detlev@die-offenbachs.de> 4 # Copyright (c) 2014 - 2024 Detlev Offenbach <detlev@die-offenbachs.de>
5 # 5 #
6 6
7 """ 7 """
8 Script for eric to clean up the source tree. 8 Script for eric to clean up the source tree.
9 """ 9 """
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