PYHTONPATH

Jeff Bauer jbauer at rubic.com
Fri Aug 11 14:11:41 EDT 2000


Jared,

If you're using Apache on the Linux box (high probability 
guess), you can set PYTHONPATH using the Apache directives 
SetEnv or PassEnv.

I'm not sure I understand your comment about not using
site-packages.  You can list some symlinked directories
within a .pth file and have everything organized in short
order.

Either technique should work fine if you've got 
administrative access to your server.

Regards,

Jeff Bauer
Rubicon Research


Jared Lee Peterson wrote:
> I am on a Linux box and I am trying to get some scripts working in
> cgi-bin that need to imput something that may be in another location on
> the system.  So does anyone know of a system wide way of setting the
> path so that all user when they attempt to input this certain thing will
> all be pulling the same thing and will not be required to have it in the
> current directory.  I know that I could put it in site-packages ... but
> it is a lot of stuff .. so I was wondering if there was another way
> before I dump all of this there.  Thanks a lot adios!




More information about the Python-list mailing list