[Python-bugs-list] [Bug #132124] [PATCH] simple fix, cgi.py uses /usr/local/bin/python ?
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 13 Feb 2001 05:14:36 -0800
Bug #132124, was updated on 2001-Feb-12 18:29
Here is a current snapshot of the bug.
Project: Python
Category: Python Library
Status: Closed
Resolution: Wont Fix
Bug Group: None
Priority: 5
Submitted by: gbsadler
Assigned to : gvanrossum
Summary: [PATCH] simple fix, cgi.py uses /usr/local/bin/python ?
Details: Index: Lib/cgi.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/cgi.py,v
retrieving revision 1.60
diff -p -u -r1.60 cgi.py
--- Lib/cgi.py 2001/02/09 09:59:10 1.60
+++ Lib/cgi.py 2001/02/13 02:23:39
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
"""Support module for CGI (Common Gateway Interface) scripts.
See no reason for /usr/local/bin...
Follow-Ups:
Date: 2001-Feb-13 05:14
By: gvanrossum
Comment:
Good idea. Comment added. Here it is:
# 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.
-------------------------------------------------------
Date: 2001-Feb-13 02:22
By: tim_one
Comment:
Assigned to Guido. My understanding is that /usr/bin/env often isn't
available in CGI environments, which is why cgi.py is unique in using
/usr/local/bin/python. But what do I know ... if that is the case, how
about adding a comment to cgi.py explaining it? IIRC, this isn't the first
time we got a fix for this "bug".
-------------------------------------------------------
For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=132124&group_id=5470