mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-21 01:07:18 +08:00
Update keil.py
clear old groups in template.uvproj.
This commit is contained in:
parent
0ad17f462d
commit
0cf9018e49
@ -107,6 +107,7 @@ def MDK4Project(target, script):
|
||||
groups = tree.find('Targets/Target/Groups')
|
||||
if groups is None:
|
||||
groups = SubElement(tree.find('Targets/Target'), 'Groups')
|
||||
groups.clear() # clean old groups
|
||||
for group in script:
|
||||
group_xml = MDK4AddGroup(ProjectFiles, groups, group['name'], group['src'], project_path)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user