add GetConfigValue() by Grissiom.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2284 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
e39022f3c7
commit
52fdfa1bf8
|
@ -136,6 +136,13 @@ def PrepareModuleBuilding(env, root_directory):
|
|||
# add program path
|
||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||
|
||||
def GetConfigValue(name):
|
||||
assert type(name) == str, 'GetConfigValue: only string parameter is valid'
|
||||
try:
|
||||
return BuildOptions[name]
|
||||
except:
|
||||
return ''
|
||||
|
||||
def GetDepend(depend):
|
||||
building = True
|
||||
if type(depend) == type('str'):
|
||||
|
|
Loading…
Reference in New Issue