Merge pull request #3072 from liruncong/EnvPath

[tools]修正外部环境变量未引入Env Path,导致自定义Builder的action参数使用python函数时,无法找到外部程序的问题
This commit is contained in:
Bernard Xiong 2019-09-16 08:49:30 +08:00 committed by GitHub
commit cb40e60273
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
os.environ['PATH'] = rtconfig.EXEC_PATH + ":" + os.environ['PATH'] os.environ['PATH'] = rtconfig.EXEC_PATH + ":" + os.environ['PATH']
# add program path # add program path
env.PrependENVPath('PATH', rtconfig.EXEC_PATH) env.PrependENVPath('PATH', os.environ['PATH'])
# add rtconfig.h/BSP path into Kernel group # add rtconfig.h/BSP path into Kernel group
DefineGroup("Kernel", [], [], CPPPATH=[str(Dir('#').abspath)]) DefineGroup("Kernel", [], [], CPPPATH=[str(Dir('#').abspath)])