From 0cf9018e49f7d61635c9782a2ad006ba9860df05 Mon Sep 17 00:00:00 2001 From: aozima Date: Tue, 5 Aug 2014 11:51:32 +0800 Subject: [PATCH] Update keil.py clear old groups in template.uvproj. --- tools/keil.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/keil.py b/tools/keil.py index ef0dece3f8..912c358488 100644 --- a/tools/keil.py +++ b/tools/keil.py @@ -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)