bootstrap: fix path after test reorg

The bootstrap script no longer works properly since the src/ directory
was added to support test cases. Fix that.

Signed-off-by: Marti Bolivar <marti@foundries.io>
This commit is contained in:
Marti Bolivar 2018-08-25 19:09:46 -05:00
parent 856793a3a6
commit 6d18b668ef
1 changed files with 3 additions and 3 deletions

View File

@ -167,9 +167,9 @@ def wrap(argv):
except WestNotFound:
sys.exit('Error: not a Zephyr directory (or any parent): {}\n'
'Use "west init" to install Zephyr here'.format(start))
# Put the top-level west at the highest priority except for the
# script directory / current working directory.
sys.path.insert(1, join(topdir, WEST))
# Put the top-level west source directory at the highest priority
# except for the script directory / current working directory.
sys.path.insert(1, join(topdir, WEST, 'src'))
main_module = importlib.import_module('west.main')
main_module.main(argv=argv)