Skip to content
Commit 8eeac3e2 authored by Martí Bolívar's avatar Martí Bolívar Committed by Christopher Friedt
Browse files

doc: link-roles: clean up setup() method



The setup() method is trying to find the zephyr repository by name,
but it's not passing allow_paths=False to the west method it uses to
search.

That may lead to unpredictable results depending on what the current
working directory is in the calling environment.

For robustness, disallow paths and make sure we are only searching for
the zephyr project by name.

Add some more comments to explain what is going on and clean up the
empty string handling while we're here.

Signed-off-by: default avatarMartí Bolívar <marti.bolivar@nordicsemi.no>
parent d608e797
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment