I have a python program that should work on Windows and Linux. There are some configuration options that I usually store in a file in a subdirectory of the program directory.
On Windows, I converted it to exe and created an installer for it. And now I have a problem with the configuration file.
What is the best place to save in the configuration file? I read that for Windows os.environ['APPDATA']+'myAppName' is the path to use. Is it correct? Is this standard? Will it work in all versions of Windows, at least with XP (and at least in English and Spanish)?
PD: I'm not interested in using ConfigParser. The Config file is in my own format, and I have working code to read / write.
jeanc source share