Files
Lawrence Velázquez 337f00722f python27: Refresh patches
git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@152946 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-09-21 05:00:25 +00:00

21 lines
837 B
Diff

Index: Lib/cgi.py
===================================================================
--- Lib/cgi.py.orig
+++ Lib/cgi.py
@@ -1,13 +1,6 @@
-#! /usr/local/bin/python
+#! @@PREFIX@@/bin/python2.7
-# 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.
+# NOTE: The original #!/usr/local/bin/python patched for MacPorts installation
"""Support module for CGI (Common Gateway Interface) scripts.