mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-08 11:54:50 +08:00
Merge pull request #352 from grissiom/fix-tools-srcremove-st
tools: fix SrcRemove on empty src
This commit is contained in:
@@ -493,6 +493,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