From 5e95cee2f34b1f7efd54500f93f18dbc669438dd Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Fri, 23 Dec 2022 19:09:16 -0800 Subject: [PATCH] Support kit dir to be at the root of a volume --- scripts/wk/kit/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)