Support kit dir to be at the root of a volume
This commit is contained in:
parent
c235926930
commit
5e95cee2f3
1 changed files with 1 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ def find_kit_dir(name=None):
|
||||||
cur_path = cur_path.parent
|
cur_path = cur_path.parent
|
||||||
|
|
||||||
# Check
|
# Check
|
||||||
if cur_path.match(cur_path.anchor):
|
if not cur_path.joinpath(search).exists():
|
||||||
raise FileNotFoundError(f'Failed to find kit dir, {name=}')
|
raise FileNotFoundError(f'Failed to find kit dir, {name=}')
|
||||||
if name:
|
if name:
|
||||||
cur_path = cur_path.joinpath(name)
|
cur_path = cur_path.joinpath(name)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue