[mod_python] sys.path shared?

Terry MacDonald terry.macdonald at dsl.pipex.com
Wed Sep 22 00:44:13 EDT 2004


Each apache instance/process has its own interpreter therefore its own
sys.path.  So I would say it is not possible.

On Tue, 2004-09-21 at 23:24, Adrian Holovaty wrote:
> I have mod_python code that appends a directory to sys.path and deletes that 
> directory from sys.path at the end of the handler. Is it possible that, 
> between that push and pop, another Apache instance running the same code 
> might get the non-popped sys.path, making its sys.path out of sync with the 
> other Apaches?
> 
> Adrian
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
-- 
Terry
Registered Linux User # 311806
www.taumu.com




More information about the Mod_python mailing list