[mod_python] sys.path shared?

Gregory (Grisha) Trubetskoy grisha at modpython.org
Wed Sep 22 13:57:04 EDT 2004


On Wed, 22 Sep 2004, Terry MacDonald wrote:

> Can anyone put me right on my understanding of the way mod_python works
> in an apache forked process environment.  Each process has its own
> embedded interpreter and therefore its own sys.path variable.

Each process may have more than one sub-interpreter, and each 
subinterpreter has a separate sys.path.

> How is it possible for an apache instance/process with its own embedded
> interpreter to 'reach' across and use/inherit another
> processes/interpreters sys.path?

It's not possible.

Grisha



More information about the Mod_python mailing list