darling-python/2.7/fix/usrlocalbin.patch
2016-02-18 22:45:27 +01:00

18 lines
736 B
Diff

--- lib/python2.7/cgi.py.orig Mon Jul 28 12:43:46 2003
+++ lib/python2.7/cgi.py Mon Jul 28 12:45:16 2003
@@ -1,13 +1,4 @@
-#! /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.
+#! /usr/bin/env python
"""Support module for CGI (Common Gateway Interface) scripts.