[Pythonmac-SIG] python module search path in Apache on OSX
SamuelM.Smith
SamuelM.Smith
Sun, 16 Feb 2003 19:57:23 -0700
>
> You can fix it by creating a symlink /usr/local/lib/python2.2 pointing
> to /sw/lib/python2.2. Or, even easier, you could simply put
> #!/sw/bin/python into your scripts.
Neither of these fixes changed the path at all. =(
One other item I forgot to mention is that the PYTHONPATH environment
variable has a couple more directories in that get prepended to normal
python but are also not in the Apachi CGI invocation of python.
I noticed that the python library ref for cgi states. "In particular,
don't count on ...the Ptyhon module search path (PYTHONPATH) to be set
to anything interesting."
> --
> - Jack Jansen <Jack.Jansen@oratrix.com>
> http://www.cwi.nl/~jack -
> - If I can't dance I don't want to be part of your revolution -- Emma
> Goldman -
>