From 98d4bb4333f6dbeeae9590ccad71338e903134e7 Mon Sep 17 00:00:00 2001 From: Andy Date: Wed, 22 Oct 2025 16:48:03 +0000 Subject: [PATCH] fix(config): support config in user config directory across platforms Fixes #23 --- unshackle/core/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unshackle/core/config.py b/unshackle/core/config.py index 08e620e..6eb7b26 100644 --- a/unshackle/core/config.py +++ b/unshackle/core/config.py @@ -118,8 +118,8 @@ POSSIBLE_CONFIG_PATHS = ( Config._Directories.namespace_dir / Config._Filenames.root_config, # The Parent Folder to the unshackle Namespace Folder (e.g., %appdata%/Python/Python311/site-packages) Config._Directories.namespace_dir.parent / Config._Filenames.root_config, - # The AppDirs User Config Folder (e.g., %localappdata%/unshackle) - Config._Directories.user_configs / Config._Filenames.root_config, + # The AppDirs User Config Folder (e.g., ~/.config/unshackle on Linux, %LOCALAPPDATA%\unshackle on Windows) + Path(Config._Directories.app_dirs.user_config_dir) / Config._Filenames.root_config, )