[tools] keil.py Improve error messages.
This commit is contained in:
parent
310f1ea4fa
commit
71841b8ddd
|
@ -281,6 +281,11 @@ def MDK45Project(tree, target, script):
|
||||||
out.close()
|
out.close()
|
||||||
|
|
||||||
def MDK4Project(target, script):
|
def MDK4Project(target, script):
|
||||||
|
|
||||||
|
if os.path.isfile('template.uvproj') is False:
|
||||||
|
print ('Warning: The template project file [template.uvproj] not found!')
|
||||||
|
return
|
||||||
|
|
||||||
template_tree = etree.parse('template.uvproj')
|
template_tree = etree.parse('template.uvproj')
|
||||||
|
|
||||||
MDK45Project(template_tree, target, script)
|
MDK45Project(template_tree, target, script)
|
||||||
|
@ -297,6 +302,10 @@ def MDK4Project(target, script):
|
||||||
|
|
||||||
def MDK5Project(target, script):
|
def MDK5Project(target, script):
|
||||||
|
|
||||||
|
if os.path.isfile('template.uvprojx') is False:
|
||||||
|
print ('Warning: The template project file [template.uvprojx] not found!')
|
||||||
|
return
|
||||||
|
|
||||||
template_tree = etree.parse('template.uvprojx')
|
template_tree = etree.parse('template.uvprojx')
|
||||||
|
|
||||||
MDK45Project(template_tree, target, script)
|
MDK45Project(template_tree, target, script)
|
||||||
|
|
Loading…
Reference in New Issue