[mod_python] setting pythonpath for each virtual directory.

David Fraser davidf at sjsoft.com
Tue Nov 4 14:11:02 EST 2003


elvelind grandin wrote:

> What I want is to let every site in my apache server to have a own 
> place to place the site specific modules.  how do I tell 
> apache/mod_python to add this to the searchpath for each site. note 
> that one site should only have access to it's own module directory.
>
> sorry for the bad enlish. tierd and swedish ;)
>
> /elvelind
>
> amandarin.se

Hi Elvelind

The path of the directory is added by default to the search path.
Alternatively you can use the PythonPath option in an .htaccess file in 
each directory
(See the documentation about this)

David




More information about the Mod_python mailing list