4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-22 01:15:26 +08:00

[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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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