diff options
author | Guido van Rossum <guido@python.org> | 2001-02-13 13:13:33 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-02-13 13:13:33 (GMT) |
commit | 467d723bd728e73d425c143b9ed6e8301a3d7721 (patch) | |
tree | b78d24b1ee4ef68edfb49cd6ecdec48945d7e085 /Lib/cgi.py | |
parent | 5c4d5bfaf593587032e872c30e32ab129ca15462 (diff) | |
download | cpython-467d723bd728e73d425c143b9ed6e8301a3d7721.zip cpython-467d723bd728e73d425c143b9ed6e8301a3d7721.tar.gz cpython-467d723bd728e73d425c143b9ed6e8301a3d7721.tar.bz2 |
Added a comment explaining why this file must really have #!
/usr/local/bin/python and not #! /usr/bin/env python.
Diffstat (limited to 'Lib/cgi.py')
-rwxr-xr-x | Lib/cgi.py | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1,5 +1,14 @@ #! /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. This module defines a number of utilities for use by CGI scripts |