fix(config): support config in user config directory across platforms

Fixes #23
This commit is contained in:
Andy
2025-10-22 16:48:03 +00:00
parent 1c48b282de
commit 98d4bb4333

View File

@@ -118,8 +118,8 @@ POSSIBLE_CONFIG_PATHS = (
Config._Directories.namespace_dir / Config._Filenames.root_config, Config._Directories.namespace_dir / Config._Filenames.root_config,
# The Parent Folder to the unshackle Namespace Folder (e.g., %appdata%/Python/Python311/site-packages) # The Parent Folder to the unshackle Namespace Folder (e.g., %appdata%/Python/Python311/site-packages)
Config._Directories.namespace_dir.parent / Config._Filenames.root_config, Config._Directories.namespace_dir.parent / Config._Filenames.root_config,
# The AppDirs User Config Folder (e.g., %localappdata%/unshackle) # The AppDirs User Config Folder (e.g., ~/.config/unshackle on Linux, %LOCALAPPDATA%\unshackle on Windows)
Config._Directories.user_configs / Config._Filenames.root_config, Path(Config._Directories.app_dirs.user_config_dir) / Config._Filenames.root_config,
) )