Looks good.  I changed it a bit so it would also monitor modules that
were loaded before ImportSpy was started up (e.g., Application.py).  It
would be good to also add any configuration files -- I suppose a hook 
could be added to Configurable.  To do that ImportSpy should probably
not auto-install itself, since Configurable would have to check if
ImportSpy was on.

Another feature that would be nice would be avoiding checking Python
standard libraries.  On Unix that will generally be files starting in
/usr/lib/pythonX.X -- but that's obviously not general, even on Unix. 
I'm not sure how to identify that directory.  It might be
os.path.join(sys.prefix, 'lib/python%i.%i' % (sys.version_info[0],
sys.version_info[1])).

I did have a problem with the actual restart, though.  It shuts down and
I get:
  /usr/bin/python: can't open file 'Launch.py'

I don't get it -- I'm starting it up from ./AppServer (in the WebKit
directory).  $PWD is the WebKit directory.  Launch.py is in the WebKit
directory.  So I don't know why it isn't working.

On a stylistic note: it's best to use """ instead of ''' for docstrings
-- Emacs sometimes is confused with '''.  Also please be sure to put
whitespace after all commas.

  Ian



-------------------------------------------------------
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to