I have a python desktop application that needs to store user data. On Windows, this is usually in %USERPROFILE%\\Application Data\\AppName\\, on OSX it\'s usual
%USERPROFILE%\\Application Data\\AppName\\
There's a small module available that does exactly that:
https://pypi.org/project/appdirs/