[Python-checkins] CVS: python/dist/src/Lib cgi.py,1.60,1.61
Guido van Rossum
gvanrossum@users.sourceforge.net
Tue, 13 Feb 2001 05:13:35 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv2848
Modified Files:
cgi.py
Log Message:
Added a comment explaining why this file must really have #!
/usr/local/bin/python and not #! /usr/bin/env python.
Index: cgi.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/cgi.py,v
retrieving revision 1.60
retrieving revision 1.61
diff -C2 -r1.60 -r1.61
*** cgi.py 2001/02/09 09:59:10 1.60
--- cgi.py 2001/02/13 13:13:33 1.61
***************
*** 1,4 ****
--- 1,13 ----
#! /usr/local/bin/python
+ # NOTE: the above "/usr/local/bin/python" is NOT a mistake. It is
+ # intentionally NOT "/usr/bin/env python". On many systems
+ # (e.g. Solaris), /usr/local/bin is not in $PATH as passed to CGI
+ # scripts, and /usr/local/bin is the default directory where Python is
+ # installed, so /usr/bin/env would be unable to find python. Granted,
+ # binary installations by Linux vendors often install Python in
+ # /usr/bin. So let those vendors patch cgi.py to match their choice
+ # of installation.
+
"""Support module for CGI (Common Gateway Interface) scripts.