On 2008-05-16, Venkatraman.S. <[EMAIL PROTECTED]> wrote:
> The problem being, if i change the config file, then the configobj has
> to reload this file again. I do not want to 'refresh' the config obj
> per transaction but only when the config params change.

If you have trustable time stamps at your file system, you could check the time
stamp before loading.

> I was thinking along the terms of an Interrupt driven program, which
> when getting a custom interrupts reloads the file - any potential
> loopholes/falls that anyone can anticipate?

Many unix deamons use SIGHUP signal to reload configs.
Maybe that would be an option?


Sincerely,
Albert

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to