--- lib/python2.3/cgi.py.orig Mon Jul 28 12:43:46 2003 +++ lib/python2.3/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. --- Resources/Python.app/Contents/Resources/English.lproj/Documentation/shell.html.orig Mon Jul 28 12:46:28 2003 +++ Resources/Python.app/Contents/Resources/English.lproj/Documentation/shell.html Mon Jul 28 12:49:01 2003 @@ -17,22 +17,7 @@

MacPython 2.3 installs a perfectly normal Unix commandline - python interpreter in /usr/local/bin/python. As of Mac OS X 10.2, however, - /usr/local/bin is not on the search path of your shell. Moreover, - Apple's python 2.2, which lives in /usr/bin is on your - search path, so this can lead to confusion.

- -

If you use tcsh you should add the following line - to the file .login in your home directory and restart Terminal: -
- setenv PATH /usr/local/bin:$PATH -

- -

If you use bash or zsh - you should add the following line - to the file .profile in your home directory and restart Terminal: -
- export PATH=/usr/local/bin:$PATH + python interpreter in /usr/bin/python.

GUI scripts

@@ -40,7 +25,7 @@

Due to the way MacOS handles windowing applications you need to run all scripts that use the window manager (be it through Carbon, Cocoa, Tkinter, wxPython, PyOpenGL or anything else) with the - pythonw interpreter, also installed in /usr/local/bin.

+ pythonw interpreter, also installed in /usr/bin.

Running with python results in an inability to bring the script to the front, or interacting with it.