[tools][iar] 将IARPath作为独立函数
This commit is contained in:
parent
dc6b9fde98
commit
d1c66d0e30
|
@ -169,10 +169,6 @@ def IARProject(target, script):
|
||||||
|
|
||||||
IARWorkspace(target)
|
IARWorkspace(target)
|
||||||
|
|
||||||
def IARVersion():
|
|
||||||
import subprocess
|
|
||||||
import re
|
|
||||||
|
|
||||||
def IARPath():
|
def IARPath():
|
||||||
import rtconfig
|
import rtconfig
|
||||||
|
|
||||||
|
@ -190,6 +186,10 @@ def IARVersion():
|
||||||
|
|
||||||
return path
|
return path
|
||||||
|
|
||||||
|
def IARVersion():
|
||||||
|
import subprocess
|
||||||
|
import re
|
||||||
|
|
||||||
path = IARPath()
|
path = IARPath()
|
||||||
|
|
||||||
if os.path.exists(path):
|
if os.path.exists(path):
|
||||||
|
|
Loading…
Reference in New Issue