hotfix ensure that path is a Path
This commit is contained in:
parent
8a8480af32
commit
2fd46d452b
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ def cache_dir(path: Path, file: str) -> Path:
|
||||||
The path holding the cached data for the given file.
|
The path holding the cached data for the given file.
|
||||||
"""
|
"""
|
||||||
cache_path_list = file.split("/")[1:]
|
cache_path_list = file.split("/")[1:]
|
||||||
cache_path = path / CACHE_DIR
|
cache_path = Path(path) / CACHE_DIR
|
||||||
for directory in cache_path_list:
|
for directory in cache_path_list:
|
||||||
cache_path /= directory
|
cache_path /= directory
|
||||||
return cache_path
|
return cache_path
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue