Where is a good place/way to store Windows config files for Python scripts?

Posted by thornomad on Stack Overflow See other posts from Stack Overflow or by thornomad
Published on 2010-05-22T12:42:23Z Indexed on 2010/05/22 12:51 UTC
Read the original article Hit count: 216

I have a script/program I am working on that requires a configuration file (I am using ConfigParser). On linux, I will default to store these variables in ~/.myscript using the os.getenv('HOME') function.

With Windows, I know I can use os.getenv('USERPROFILE') to find the User's "home" directory, however, is it a good idea to save a hidden file that way (ie, with the name .myscript)?

I don't use Windows, obviously, but wanted to be smart about it for those who do.

Is there a standard place/way to store these config variables on Windows?

© Stack Overflow or respective owner

Related posts about python

Related posts about Windows