[mod_python] import module behaviour ?!

Nicolescu Lucian lucian at tonicagency.com
Tue May 4 00:38:03 EST 2004


looks like reload(module) does the trick !
:D

Nicolescu Lucian
 

> -----Original Message-----
> From: mod_python-bounces at modpython.org 
> [mailto:mod_python-bounces at modpython.org] On Behalf Of 
> Nicolescu Lucian
> Sent: Monday, May 03, 2004 11:34 PM
> To: mod_python at modpython.org
> Subject: [mod_python] import module behaviour ?!
> 
> hi there,
> 
> I am a new into mod_python and there is a strange thing I noticed:
> I use import <somefile_from_current_dir> to have access to some global
> variables I need in my application (so I don't have to 
> reinitialize it again
> in another file)
> the thing is that if I make any changes in 
> <somefile_from_current_dir> they
> will not be noticed until I restart apache
> is there another way around this ?
> 
> btw: I use: apache 2.0.48, python 2.3.3, mod_python 3.1.3 !
> 
> 10x,
> Nicolescu Lucian
> 
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python



More information about the Mod_python mailing list