diff --git a/scripts/wk/kit/tools.py b/scripts/wk/kit/tools.py index 0d59cb81..854bf4c4 100644 --- a/scripts/wk/kit/tools.py +++ b/scripts/wk/kit/tools.py @@ -157,7 +157,7 @@ def find_kit_dir(name=None): cur_path = cur_path.parent # Check - if cur_path.match(cur_path.anchor): + if not cur_path.joinpath(search).exists(): raise FileNotFoundError(f'Failed to find kit dir, {name=}') if name: cur_path = cur_path.joinpath(name)