I want my application to write a simple application configuration file per user. However, I'd like to place the configuration file under the most sensible path.
On Linux, configuration files can reside under ~ or ~/.config.
On Windows, configuration files can reside under %USERPROFILE% (typically C:\Users\user), or %APPDATA% (typically C:\Users\user\AppData), or %LOCALAPPDATA% (typically C:\Users\user\AppData\Local).
Is there a cross-platform Python module that picks the best application configuration directory for me?
This application configuration file must be readable and writeable by the user-run application.