summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-11-27 19:52:01 (GMT)
committerGuido van Rossum <guido@python.org>1996-11-27 19:52:01 (GMT)
commitf06ee5fa072931fc807527535c91a46c149a6746 (patch)
treef5be5d5b642b477eaf52e42de2a7792e2ab91cb7 /Lib
parentcd612d5e5c330bcc77e593cbc406b4214858aa78 (diff)
downloadcpython-f06ee5fa072931fc807527535c91a46c149a6746.zip
cpython-f06ee5fa072931fc807527535c91a46c149a6746.tar.gz
cpython-f06ee5fa072931fc807527535c91a46c149a6746.tar.bz2
/usr/local/bin/python -> /usr/bin/env python
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/cgi.py8
-rwxr-xr-xLib/mailbox.py2
-rwxr-xr-xLib/mimify.py2
-rwxr-xr-xLib/pdb.py2
-rwxr-xr-xLib/profile.py2
-rwxr-xr-xLib/test/pystone.py2
6 files changed, 11 insertions, 7 deletions
diff --git a/Lib/cgi.py b/Lib/cgi.py
index 3f1a1c4..7fab38d 100755
--- a/Lib/cgi.py
+++ b/Lib/cgi.py
@@ -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
diff --git a/Lib/mailbox.py b/Lib/mailbox.py
index 3d7d2fc..36f58f5 100755
--- a/Lib/mailbox.py
+++ b/Lib/mailbox.py
@@ -1,4 +1,4 @@
-#!/usr/local/bin/python
+#! /usr/bin/env python
"""Classes to handle Unix style, MMDF style, and MH style mailboxes."""
diff --git a/Lib/mimify.py b/Lib/mimify.py
index 0b2bb1b..ce4c4ba 100755
--- a/Lib/mimify.py
+++ b/Lib/mimify.py
@@ -1,4 +1,4 @@
-#!/usr/local/bin/python
+#! /usr/bin/env python
'''Mimification and unmimification of mail messages.
diff --git a/Lib/pdb.py b/Lib/pdb.py
index 62927a3..42080cc 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# pdb.py -- finally, a Python debugger!
diff --git a/Lib/profile.py b/Lib/profile.py
index 51e95cb..582bd8a 100755
--- a/Lib/profile.py
+++ b/Lib/profile.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
#
# Class for profiling python code. rev 1.0 6/2/94
#
diff --git a/Lib/test/pystone.py b/Lib/test/pystone.py
index 954e6c9..c388982 100755
--- a/Lib/test/pystone.py
+++ b/Lib/test/pystone.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
"""
"PYSTONE" Benchmark Program