> On Tue, Jun 15, 2010 at 2:27 PM, Pete O'Connell <pedrooconn...@gmail.com> 
> wrote:
>> Hi I was wondering if anyone could give me some insight as to the best way
>> to get and save variables from a user the first time a script is opened. For
>> example if the script prompts something like "What is the path to the
>> folder?" and the result is held in a variable called thePath, what is the
>> best way to have that variable saved for all subsequent uses of the script
>> by the same user.
>> Pete

> In UNIX-likes, It would be a configuration file in their home
> 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.

Alan

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to