Support kit dir to be at the root of a volume

This commit is contained in:
2Shirt 2022-12-23 19:09:16 -08:00
parent c235926930
commit 5e95cee2f3
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -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)