diff options
| author | guozhanxin <[email protected]> | 2022-03-29 20:50:38 +0800 |
|---|---|---|
| committer | guozhanxin <[email protected]> | 2022-03-29 20:50:38 +0800 |
| commit | f9245ef6fbcf2288309820930d473db39ef95cfa (patch) | |
| tree | d81b381046152b9bf5fc373a8130c10cadc8b5d4 /tools | |
| parent | 61f1f698ec60db75d314b3782800514c706d7980 (diff) | |
| parent | a4a5ec0232ad32b70fed704b2a71803849e610f4 (diff) | |
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/keil.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/keil.py b/tools/keil.py index 75986ecbd0..ac2e2c9315 100644 --- a/tools/keil.py +++ b/tools/keil.py @@ -281,6 +281,11 @@ def MDK45Project(tree, target, script): out.close() 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') MDK45Project(template_tree, target, script) @@ -297,6 +302,10 @@ def MDK4Project(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') MDK45Project(template_tree, target, script) |
