bugfix:remove duplicate files in src list before DefineGroup

This commit is contained in:
yaxing.chen 2021-03-05 17:13:18 +08:00
parent 1ea5135a28
commit 762427bedc
1 changed files with 2 additions and 0 deletions

View File

@ -626,6 +626,8 @@ def DefineGroup(name, src, depend, **parameters):
group['name'] = name
group['path'] = group_path
if type(src) == type([]):
# remove duplicate elements from list
src = list(set(src))
group['src'] = File(src)
else:
group['src'] = src