[Python-Dev] Re: CVS: python/dist/src/Lib cgi.py,1.53,1.54
Guido van Rossum
guido@python.org
Tue, 03 Oct 2000 09:58:00 -0500
> > hmm. cgi.py is a CGI script. according to the Python FAQ, CGI
> > scripts should use an explicit path, not /usr/bin/env:
> >
> > "Note -- *don't* do this for CGI scripts. The $PATH variable
> > for CGI scripts is often very minimal, so you need to use the
> > actual absolute pathname of the interpreter."
>
> The $PATH variable for CGI scripts may be minimal, but minimal
> as it is, Python should still be on it. Using /usr/bin/python
> works for half the people and /usr/local/bin/python works for
> the other half... /usr/bin/env is supposed to work for everyone.
No. On a typical Unix system (Linux perhaps excluded), /usr/local/bin
is not on the default $PATH.
> If this has already been argued soundly to death, i'm happy to
> back out the change and add a comment. It was a meaningless
> change for me anyway.
I backed it out for you. It really has been argued to death.
Glad CVS works for you!
--Guido van Rossum (home page: http://www.python.org/~guido/)