config : fix cache_dir_path value parsing error
Configparser's config.get returns a string and we want a Path. for the moment convert it to Path directly.
This commit is contained in:
@@ -95,7 +95,7 @@ def load_config(config_path:str) -> Config:
|
|||||||
config.get(roots_section, "remote")
|
config.get(roots_section, "remote")
|
||||||
)
|
)
|
||||||
other_config = OtherConfig(
|
other_config = OtherConfig(
|
||||||
config.get(other_section, "cache_dir_path", fallback=DEFAULT_MISC_CACHE_DIR_PATH)
|
Path(config.get(other_section, "cache_dir_path", fallback=DEFAULT_MISC_CACHE_DIR_PATH)).expanduser()
|
||||||
)
|
)
|
||||||
|
|
||||||
args_bool = list()
|
args_bool = list()
|
||||||
|
|||||||
Reference in New Issue
Block a user