[tools/iar] iar.py fix scons --target=iar --dist (#9997)

#9996
This commit is contained in:
蒙蒙plus
2025-02-18 09:16:18 +08:00
committed by GitHub
parent 5b3320624d
commit a313d12ea0

View File

@@ -183,14 +183,12 @@ def IARPath():
# backup environ
old_environ = os.environ
os.environ['RTT_CC'] = 'iar'
utils.ReloadModule(rtconfig)
# get iar path
path = rtconfig.EXEC_PATH
# restore environ
os.environ = old_environ
utils.ReloadModule(rtconfig)
return path