diff options
author | Guido van Rossum <guido@python.org> | 1996-11-27 19:52:01 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-11-27 19:52:01 (GMT) |
commit | f06ee5fa072931fc807527535c91a46c149a6746 (patch) | |
tree | f5be5d5b642b477eaf52e42de2a7792e2ab91cb7 /Lib/cgi.py | |
parent | cd612d5e5c330bcc77e593cbc406b4214858aa78 (diff) | |
download | cpython-f06ee5fa072931fc807527535c91a46c149a6746.zip cpython-f06ee5fa072931fc807527535c91a46c149a6746.tar.gz cpython-f06ee5fa072931fc807527535c91a46c149a6746.tar.bz2 |
/usr/local/bin/python -> /usr/bin/env python
Diffstat (limited to 'Lib/cgi.py')
-rwxr-xr-x | Lib/cgi.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,4 +1,4 @@ -#!/usr/local/bin/python +#! /usr/bin/env python """Support module for CGI (Common Gateway Interface) scripts. @@ -216,10 +216,14 @@ Unix file mode should be 755 (use "chmod 755 filename"). Make sure 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 |