[mod_python] environment settings

Robert Brewer fumanchu at amor.org
Wed Feb 1 18:12:39 EST 2006


Graham Dumpleton wrote:
> Nic Ferrier wrote ..
> > Does SetEnv apply to mod_python code?
> 
> It does not insert it into "sys.environ" if that is what you 
> are expecting.
> The value will be found in "req.subprocess_env" though.

But note that apache.build_cgi_env overwrites SCRIPT_NAME, for example
(re-creating it from req.uri and req.path_info). There may be other
special cases like that--the fastest way to find out is to test. ;)


Robert Brewer
System Architect
Amor Ministries
fumanchu at amor.org



More information about the Mod_python mailing list