mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-09 20:45:41 +08:00
Merge pull request #351 from grissiom/fix-tools-srcremove
tools: fix SrcRemove on empty src
This commit is contained in:
commit
a4bb77d097
1 file changed
+3
@@ -495,6 +495,9 @@ def EndBuilding(target, program = None):
|
||||
CscopeDatabase(Projects)
|
||||
|
||||
def SrcRemove(src, remove):
|
||||
if not src:
|
||||
return
|
||||
|
||||
if type(src[0]) == type('str'):
|
||||
for item in src:
|
||||
if os.path.basename(item) in remove:
|
||||
|
||||
Reference in new issue
Block a user