[mod_python] mod_python module path

Jorey Bump list at joreybump.com
Tue Nov 8 13:42:46 EST 2005


Pedro Ferreira wrote:
> Hello all.
> I'm starting with mod_python, and I'm thinnking about developing a web 
> application using it. However, I have some python packages of my own, 
> that i wanted to use, and don't know how to add them to the module path. 
> I made a symlink in site-packages, to my module directory, and it works. 
> However, I'll need to do it without administrator privileges. How is it 
> possible? Is there any variable I should change?

I use the PythonPath directive in my virtual host configuration:

  PythonPath "['/var/www/vhosts/www.example.com/python'] + sys.path"

For more info, see:

  http://www.modpython.org/live/current/doc-html/dir-other-pp.html


More information about the Mod_python mailing list