Ticket #22517: patch-Lib-cgi.py.diff

File patch-Lib-cgi.py.diff, 808 bytes (added by eborisch@…, 14 years ago)
  • Lib/cgi.py

    old new  
    1 #! /usr/local/bin/python
     1#! __PREFIX__/bin/python2.6
    22
    3 # NOTE: the above "/usr/local/bin/python" is NOT a mistake.  It is
    4 # intentionally NOT "/usr/bin/env python".  On many systems
    5 # (e.g. Solaris), /usr/local/bin is not in $PATH as passed to CGI
    6 # scripts, and /usr/local/bin is the default directory where Python is
    7 # installed, so /usr/bin/env would be unable to find python.  Granted,
    8 # binary installations by Linux vendors often install Python in
    9 # /usr/bin.  So let those vendors patch cgi.py to match their choice
    10 # of installation.
     3# NOTE: /usr/local/bin/python patched for MacPorts installation
    114
    125"""Support module for CGI (Common Gateway Interface) scripts.
    136