appdirs.user_config_dir() points to ~/Library/Preferences on macOS:
|
Typical user config directories are: |
|
Mac OS X: ~/Library/Preferences/<AppName> |
|
Unix: ~/.config/<AppName> # or in $XDG_CONFIG_HOME, if defined |
|
Win *: same as user_data_dir |
|
|
|
For Unix, we follow the XDG spec and support $XDG_CONFIG_HOME. |
|
That means, by default "~/.config/<AppName>". |
|
""" |
|
if system == "win32": |
|
path = user_data_dir(appname, appauthor, None, roaming) |
|
elif system == 'darwin': |
|
path = os.path.expanduser('~/Library/Preferences/') |
|
if appname: |
|
path = os.path.join(path, appname) |
This goes against OS guidelines:
Preferences
| Contains the user’s preferences. You should never create files in this directory yourself. To get or set preference values, you should always use the NSUserDefaults class or an equivalent system-provided interface. |
src: https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/MacOSXDirectories/MacOSXDirectories.html
appdirs.user_config_dir()points to~/Library/Preferenceson macOS:appdirs/appdirs.py
Lines 186 to 199 in 193a2cb
This goes against OS guidelines:
PreferencesContains the user’s preferences. You should never create files in this directory yourself. To get or set preference values, you should always use the
NSUserDefaultsclass or an equivalent system-provided interface.src: https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/MacOSXDirectories/MacOSXDirectories.html