未验证 提交 52d78a7f 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #1575 from armink/fix_scons

[tools] Fix SCons build error when `RTT_EXEC_PATH` not found.
......@@ -249,7 +249,7 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
# auto change the 'RTT_EXEC_PATH' when 'rtconfig.EXEC_PATH' get failed
if not os.path.exists(rtconfig.EXEC_PATH):
if os.environ['RTT_EXEC_PATH']:
if 'RTT_EXEC_PATH' in os.environ:
# del the 'RTT_EXEC_PATH' and using the 'EXEC_PATH' setting on rtconfig.py
del os.environ['RTT_EXEC_PATH']
reload(rtconfig)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册