[tools][iar] 将IARPath作为独立函数
This commit is contained in:
parent
dc6b9fde98
commit
d1c66d0e30
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue