summaryrefslogtreecommitdiff
path: root/tools/iar.py
diff options
context:
space:
mode:
authorarmink <[email protected]>2018-06-22 15:03:02 +0800
committerarmink <[email protected]>2018-06-22 15:05:33 +0800
commitb7f7d6e6b246d4f1460ecb87413dd5786cea7a74 (patch)
tree8c360b3b731b885d4b5fd7e3ae6f5cc3af6bb5e4 /tools/iar.py
parent9539892a1c4922f18ed3d7538d187d1d8e8b6081 (diff)
[tools] Fix the IDE project build error when using 'scons --target=cc'.
Diffstat (limited to 'tools/iar.py')
-rw-r--r--tools/iar.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/tools/iar.py b/tools/iar.py
index 66864d1adf..1ada157175 100644
--- a/tools/iar.py
+++ b/tools/iar.py
@@ -178,21 +178,12 @@ def IARVersion():
return path
- # get the IAR path in 'RTT_EXEC_PATH'
path = IARPath();
- # retry to get IAR path on 'rtconfig.py'
- if not os.path.exists(path):
- rtt_exec_path = os.environ['RTT_EXEC_PATH']
- if rtt_exec_path:
- del os.environ['RTT_EXEC_PATH']
- path = IARPath();
- os.environ['RTT_EXEC_PATH'] = rtt_exec_path
-
if os.path.exists(path):
cmd = os.path.join(path, 'iccarm.exe')
else:
- print('Get IAR version error. Please update IAR installation path in rtconfig.py!')
+ print('Error: get IAR version failed. Please update the IAR installation path in rtconfig.py!')
return "0.0"
child = subprocess.Popen([cmd, '--version'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)