diff options
| author | Bernard Xiong <[email protected]> | 2018-06-27 13:31:10 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-06-27 13:31:10 +0800 |
| commit | 52d78a7f08376f953283d4184167bf705d3a899c (patch) | |
| tree | fe242a4a54d9ca64c1948d13545a7c1b829785ab | |
| parent | cf73f3a3c0211d133d834f6dfd390ac8b432b5d0 (diff) | |
| parent | dc7522b7caa60d872fd864b5d162166fe69a9571 (diff) | |
Merge pull request #1575 from armink/fix_scons
[tools] Fix SCons build error when `RTT_EXEC_PATH` not found.
| -rw-r--r-- | tools/building.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/building.py b/tools/building.py index 8fa1f96331..fee9553bcf 100644 --- a/tools/building.py +++ b/tools/building.py @@ -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) |
