[tools][iar] 将IARPath作为独立函数

This commit is contained in:
Meco Man 2022-09-17 14:31:01 -04:00 committed by Man, Jianting (Meco)
parent dc6b9fde98
commit d1c66d0e30
1 changed files with 17 additions and 17 deletions

View File

@ -169,10 +169,6 @@ def IARProject(target, script):
IARWorkspace(target)
def IARVersion():
import subprocess
import re
def IARPath():
import rtconfig
@ -190,6 +186,10 @@ def IARVersion():
return path
def IARVersion():
import subprocess
import re
path = IARPath()
if os.path.exists(path):