Medusa: Reloading Python Source

Ian Bicking ianb at colorstudy.com
Mon May 26 02:13:18 EDT 2003


On Sun, 2003-05-25 at 15:18, Erik Max Francis wrote:
> 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.

No, that's not what he said.  *He* just didn't want to restart the
server.  With this technique the server restarts itself.

  Ian







More information about the Python-list mailing list