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:
parent
856793a3a6
commit
6d18b668ef
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue