[Tutor] File like object for Windows registry

K.Weinert at gmx.net K.Weinert at gmx.net
Thu Aug 3 21:35:57 CEST 2006


Hello!

My app should run on debian and windows platforms. For storing the configuration data, I use the ConfigParser module.

What I find difficult is to determine a place for my configuration file. On debian, it is simply

os.path.join(os.path.expanduser("~")),"myconfig")

but what am I supposed to do on Windows? I think a clean solution would be to create a file-like object that reads and writes to the registry, is it?

Kind regards,
Karsten.
-- 


"Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail


More information about the Tutor mailing list