Update keil.py

clear old groups in template.uvproj.
This commit is contained in:
aozima 2014-08-05 11:51:32 +08:00
parent 0ad17f462d
commit 0cf9018e49
1 changed files with 1 additions and 0 deletions

View File

@ -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)