You can add PYTHONPATH as an environment variable in the Directory directive where you run viewcvs.cgi:
<Directory "/usr/local/apache2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
SetEnv PYTHONPATH /usr/local/lib/svn-python
</Directory>
Cheers,
Craig
> I noticed that when testing my installation of the
> svn-python swig
> bindings that I couldn't do an "import svn" at first.
> I had to add /usr/local/lib/svn-python to my
> $PYTHONPATH variable. But
> now when I run viewcvs.cgi I'm getting the same
> problem. Whatever
> environment viewcvs runs in is devoid of the knowledge
> of my svn-python
> libs. So I symlinked the folder to /usr/lib/python2.2
> as svn
> -->/usr/local/lib/svn-python. But even that didn't
> fix the problem. My
> last resort here is to hardcode the library path into
> sys.path in the
> actual veiwcvs.cgi script. But that seems a little
> harsh. Is there
> something else about this that maybe I don't know?
>
>
> Regards,
>
> Bryan Simmons
> Network Systems Engineer
> General Physics
> 410.379.3710
> bsimmons@genphysics.com
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free web site building tool. Try it!
> http://webhosting.yahoo.com/ps/sb/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jan 26 21:24:02 2004