I'm finishing a program that I wrote in Python to make sure it's cross-platform. One last hurdle is about saving persistent data such as session history. In Windows, the files would be saved under the user profile's AppData\Local
folder, on MacOS, well... I have no idea, and on Linux... it depends.
What are the best practices in such a case? Is there a library that will return the recommended, best-practice location for the platform that runs the application?