[Tutor] conventions for establishing and saving default valuesfor variables

Alan Gauld alan.gauld at btinternet.com
Wed Jun 16 19:25:03 CEST 2010

"R. Alan Monroe" <amonroe at columbus.rr.com> wrote

>> directory, I suppose. Under windows, probably the registry. There's
>> the _winreg and configparser modules.
> Consider using the %USERPROFILE% environment variable rather than 
> the
> registry.

How would that work? That is just a single variable that points
to the users Settings folder. Effectively their home directory in
unix terms, so you could store the config file there. But
you couldn't store the kind of data you would store in the

I'm confused.

Alan Gauld
Author of the Learn to Program web site

More information about the Tutor mailing list