bootstrap: Fix find_west_topdir() for custom init directory

The 'start' argument to find_west_topdir() was ignored, so the search
always started from the current directory.
This commit is contained in:
Ulf Magnusson 2018-09-21 14:16:07 +02:00 committed by Marti Bolivar
parent 307c359529
commit 2117c7180f
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ def find_west_topdir(start):
def is_west_dir(d):
return os.path.isdir(d) and '.west_topdir' in os.listdir(d)
cur_dir = os.getcwd()
cur_dir = start
while True:
if is_west_dir(os.path.join(cur_dir, 'west')):