Mercurial > cpython-lru_cache-weakref
diff Lib/cgi.py @ 4573:73758db2f464 legacy-trunk
/usr/local/bin/python -> /usr/bin/env python
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 27 Nov 1996 19:52:01 +0000 |
| parents | d90d7b541ada |
| children | 18023e7c3862 |
line wrap: on
line diff
--- a/Lib/cgi.py Wed Nov 27 19:51:35 1996 +0000 +++ b/Lib/cgi.py Wed Nov 27 19:52:01 1996 +0000 @@ -1,4 +1,4 @@ -#!/usr/local/bin/python +#! /usr/bin/env python """Support module for CGI (Common Gateway Interface) scripts. @@ -216,10 +216,14 @@ that the first line of the script contains "#!" starting in column 1 followed by the pathname of the Python interpreter, for instance: - #!/usr/local/bin/python + #! /usr/local/bin/python Make sure the Python interpreter exists and is executable by "others". +(Note that it's probably not a good idea to use #! /usr/bin/env python +here, since the Python interpreter may not be on the default path +given to CGI scripts!!!) + Make sure that any files your script needs to read or write are readable or writable, respectively, by "others" -- their mode should be 644 for readable and 666 for writable. This is because, for
