From ec8030fc811e42adb45ec98d89a97a4357002e95 Mon Sep 17 00:00:00 2001 From: furtest Date: Sat, 3 Jan 2026 18:05:43 +0100 Subject: [PATCH] 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. --- src/unisync/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unisync/config.py b/src/unisync/config.py index 3294807..26e2738 100644 --- a/src/unisync/config.py +++ b/src/unisync/config.py @@ -95,7 +95,7 @@ def load_config(config_path:str) -> Config: config.get(roots_section, "remote") ) 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()