How to save initial configuration? (program installation)

Jason Zapman II zapman449 at gmail.com
Mon Jun 25 11:13:32 EDT 2007


On Jun 25, 11:10 am, kyoso... at gmail.com wrote:
> I would think you could pop-up some dialog when the program is first
> run to ask where they want the file to be. On the first run though,
> you can just have the config file located in the current working
> directory with the script file itself. Then just move it or save a new
> copy to the new location and delete the original.

The 'pop-up' is easy.  The problem is how does the program know where
it's state file is the SECOND time it is run?  I can't stash it in the
state file, since the program won't know where it is if it's not in
the CWD... (unless I'm missing something obvious).





More information about the Python-list mailing list