Skip to content

Commit 0cf9018

Browse files
committed
Update keil.py
clear old groups in template.uvproj.
1 parent 0ad17f4 commit 0cf9018

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/keil.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ def MDK4Project(target, script):
107107
groups = tree.find('Targets/Target/Groups')
108108
if groups is None:
109109
groups = SubElement(tree.find('Targets/Target'), 'Groups')
110+
groups.clear() # clean old groups
110111
for group in script:
111112
group_xml = MDK4AddGroup(ProjectFiles, groups, group['name'], group['src'], project_path)
112113

0 commit comments

Comments
 (0)