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:
2026-01-03 18:05:43 +01:00
parent f050dcc94f
commit ec8030fc81

View File

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