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

#9996
This commit is contained in:
蒙蒙plus
2025-03-10 22:37:53 +08:00
committed by Rbb666
parent bba14a1434
commit fae3356acd
-2
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