On Oct 8, 2008, at 3:40 PM, Phil Fazio wrote:
> I was wondering if there were a way to run methods or execute code on > server shutdown (Ctrl+C, or otherwise). I'd like to close a Berkeley > DB environment I'm running so as to avoid a potential nasty bug -- I > tried adding code to the __del__() method of app_globals.py, but it > doesn't seem to execute. Any help is greatly appreciated! Sure, you want the atexit module. -- Philip Jenvey --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
