Medusa: Reloading Python Source
Erik Max Francis
max at alcyone.com
Sun May 25 16:18:49 EDT 2003
Ian Bicking wrote:
> We have a technique we've been using in Webware a while, where it
> polls
> all the loaded files (as found in sys.modules), and sees if they've
> changed. If any have, the monitor thread starts a shutdown, with exit
> code 3. The shell script that starts the AppServer does a restart if
> it
> gets that exit code.
That still involves restarting the server from scratch, which the
original poster was specifically looking to avoid.
--
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
__ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
/ \ My life was better before I knew you.
\__/ Edith Wharton (to Morton Fullerton)
More information about the Python-list
mailing list