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:
parent
307c359529
commit
2117c7180f
|
@ -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')):
|
||||
|
|
Loading…
Reference in New Issue