remove project.uvopt file when generate keil mdk project file

This commit is contained in:
Bernard Xiong 2013-04-25 14:22:56 +08:00
parent 4afdf44da2
commit e58d656477
1 changed files with 5 additions and 1 deletions

View File

@ -54,7 +54,11 @@ def MDK4AddGroup(ProjectFiles, parent, name, files, project_path):
def MDK4Project(target, script): def MDK4Project(target, script):
project_path = os.path.dirname(os.path.abspath(target)) project_path = os.path.dirname(os.path.abspath(target))
project_uvopt = os.path.abspath(target).replace('uvproj', 'uvopt')
if os.path.isfile(project_uvopt):
os.unlink(project_uvopt)
tree = etree.parse('template.uvproj') tree = etree.parse('template.uvproj')
root = tree.getroot() root = tree.getroot()