summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-11-27 19:52:01 +0000
committerGuido van Rossum <guido@python.org>1996-11-27 19:52:01 +0000
commitd95976bec549a13384173f54db7f69700afa5efa (patch)
tree72946f5a89732e1c708450079c03552f193b1e79
parentd992d5543cd0dbf8288ba6b4d8a8f1b3cce70bbd (diff)
downloadcpython-d95976bec549a13384173f54db7f69700afa5efa.tar.gz
/usr/local/bin/python -> /usr/bin/env python
-rwxr-xr-xDemo/comparisons/regextest.py2
-rwxr-xr-xDemo/comparisons/sortingtest.py2
-rwxr-xr-xDemo/comparisons/systemtest.py2
-rwxr-xr-xDemo/ibrowse/ib.py2
-rwxr-xr-xDemo/parser/test_parser.py2
-rwxr-xr-xDemo/pdist/RCSProxy.py2
-rwxr-xr-xDemo/pdist/makechangelog.py2
-rwxr-xr-xDemo/pdist/rcvs.py2
-rwxr-xr-xDemo/pdist/rrcs.py2
-rwxr-xr-xDemo/scripts/eqfix.py2
-rwxr-xr-xDemo/scripts/fact.py2
-rwxr-xr-xDemo/scripts/from.py2
-rwxr-xr-xDemo/scripts/ftpstats.py2
-rwxr-xr-xDemo/scripts/lpwatch.py2
-rwxr-xr-xDemo/scripts/makedir.py2
-rwxr-xr-xDemo/scripts/markov.py2
-rwxr-xr-xDemo/scripts/mboxconvert.py2
-rwxr-xr-xDemo/scripts/mkrcs.py2
-rwxr-xr-xDemo/scripts/mpzpi.py2
-rwxr-xr-xDemo/scripts/newslist.py2
-rwxr-xr-xDemo/scripts/pi.py2
-rwxr-xr-xDemo/scripts/pp.py2
-rwxr-xr-xDemo/scripts/primes.py2
-rwxr-xr-xDemo/scripts/script.py2
-rwxr-xr-xDemo/scripts/unbirthday.py2
-rwxr-xr-xDemo/scripts/update.py2
-rwxr-xr-xDemo/sgi/al/broadcast.py2
-rwxr-xr-xDemo/sgi/al/radio.py2
-rwxr-xr-xDemo/sgi/al/unicast.py2
-rwxr-xr-xDemo/sgi/audio/play.py2
-rwxr-xr-xDemo/sgi/audio_stdwin/jukebox.py2
-rwxr-xr-xDemo/sgi/audio_stdwin/rec.py2
-rwxr-xr-xDemo/sgi/audio_stdwin/vumeter.py2
-rwxr-xr-xDemo/sgi/gl/backface.py2
-rwxr-xr-xDemo/sgi/gl/glinfo.py2
-rwxr-xr-xDemo/sgi/gl/kites.py2
-rwxr-xr-xDemo/sgi/gl/kunst.py2
-rwxr-xr-xDemo/sgi/gl/mclock.py2
-rwxr-xr-xDemo/sgi/gl/mixing.py2
-rwxr-xr-xDemo/sgi/gl/nurbs.py2
-rwxr-xr-xDemo/sgi/gl/zrgb.py2
-rwxr-xr-xDemo/sgi/video/Dsend.py2
-rwxr-xr-xDemo/sgi/video/OldVcopy.py2
-rwxr-xr-xDemo/sgi/video/Vaddcache.py2
-rwxr-xr-xDemo/sgi/video/Vb.py2
-rwxr-xr-xDemo/sgi/video/Vcopy.py2
-rwxr-xr-xDemo/sgi/video/Vedit.py2
-rwxr-xr-xDemo/sgi/video/Vfix.py2
-rwxr-xr-xDemo/sgi/video/Vinfo.py2
-rwxr-xr-xDemo/sgi/video/Vmkjpeg.py2
-rwxr-xr-xDemo/sgi/video/Vplay.py2
-rwxr-xr-xDemo/sgi/video/Vrec.py2
-rwxr-xr-xDemo/sgi/video/Vrecb.py2
-rwxr-xr-xDemo/sgi/video/Vreceive.py2
-rwxr-xr-xDemo/sgi/video/Vsend.py2
-rwxr-xr-xDemo/sgi/video/Vstat.py2
-rwxr-xr-xDemo/sgi/video/Vtime.py2
-rwxr-xr-xDemo/sgi/video/Vunjpeg.py2
-rwxr-xr-xDemo/sgi/video/aplay.py2
-rwxr-xr-xDemo/sgi/video/video2rgb.py2
-rwxr-xr-xDemo/sockets/echosvr.py2
-rwxr-xr-xDemo/sockets/finger.py2
-rwxr-xr-xDemo/sockets/gopher.py2
-rwxr-xr-xDemo/sockets/rpython.py2
-rwxr-xr-xDemo/sockets/rpythond.py2
-rwxr-xr-xDemo/sockets/telnet.py2
-rwxr-xr-xDemo/sockets/throughput.py2
-rwxr-xr-xDemo/sockets/udpecho.py2
-rwxr-xr-xDemo/stdwin/FormTest.py2
-rwxr-xr-xDemo/stdwin/RadioGroups.py2
-rwxr-xr-xDemo/stdwin/TestCSplit.py2
-rwxr-xr-xDemo/stdwin/TestDirList.py2
-rwxr-xr-xDemo/stdwin/TestFormSplit.py2
-rwxr-xr-xDemo/stdwin/TestSched.py2
-rwxr-xr-xDemo/stdwin/TestTextEdit.py2
-rwxr-xr-xDemo/stdwin/clock.py2
-rwxr-xr-xDemo/stdwin/ibrowse/ib.py2
-rwxr-xr-xDemo/stdwin/jukebox.py2
-rwxr-xr-xDemo/stdwin/lpwin.py2
-rwxr-xr-xDemo/stdwin/microedit.py2
-rwxr-xr-xDemo/stdwin/miniedit.py2
-rwxr-xr-xDemo/stdwin/python.py2
-rwxr-xr-xDemo/stdwin/wdiff.py2
-rwxr-xr-xDemo/tkinter/guido/MimeViewer.py2
-rwxr-xr-xDemo/tkinter/guido/dialog.py2
-rwxr-xr-xDemo/tkinter/guido/electrons.py2
-rwxr-xr-xDemo/tkinter/guido/kill.py2
-rwxr-xr-xDemo/tkinter/guido/mbox.py2
-rwxr-xr-xDemo/tkinter/guido/rmt.py2
-rwxr-xr-xDemo/tkinter/guido/svkill.py2
-rwxr-xr-xDemo/tkinter/guido/tkman.py2
-rwxr-xr-xDemo/tkinter/www/www1.py2
-rwxr-xr-xDemo/tkinter/www/www10.py2
-rwxr-xr-xDemo/tkinter/www/www11.py2
-rwxr-xr-xDemo/tkinter/www/www12.py2
-rwxr-xr-xDemo/tkinter/www/www13.py2
-rwxr-xr-xDemo/tkinter/www/www2.py2
-rwxr-xr-xDemo/tkinter/www/www3.py2
-rwxr-xr-xDemo/tkinter/www/www4.py2
-rwxr-xr-xDemo/tkinter/www/www5.py2
-rwxr-xr-xDemo/tkinter/www/www6.py2
-rwxr-xr-xDemo/tkinter/www/www7.py2
-rwxr-xr-xDemo/tkinter/www/www8.py2
-rwxr-xr-xDemo/tkinter/www/www9.py2
-rwxr-xr-xLib/cgi.py8
-rwxr-xr-xLib/mailbox.py2
-rwxr-xr-xLib/mimify.py2
-rwxr-xr-xLib/pdb.py2
-rwxr-xr-xLib/profile.py2
-rwxr-xr-xLib/test/pystone.py2
-rwxr-xr-xMisc/Fixcprt.py2
-rwxr-xr-xMisc/faq2html.py2
-rwxr-xr-xMisc/renumber.py2
-rwxr-xr-xTools/freeze/freeze.py2
-rwxr-xr-xTools/modulator/Tkextra.py2
-rwxr-xr-xTools/modulator/modulator.py2
-rwxr-xr-xTools/scripts/byteyears.py2
-rwxr-xr-xTools/scripts/checkpyc.py2
-rwxr-xr-xTools/scripts/classfix.py2
-rwxr-xr-xTools/scripts/copytime.py2
-rwxr-xr-xTools/scripts/dutree.py2
-rwxr-xr-xTools/scripts/eptags.py2
-rwxr-xr-xTools/scripts/findlinksto.py2
-rwxr-xr-xTools/scripts/fixcid.py2
-rwxr-xr-xTools/scripts/fixheader.py2
-rwxr-xr-xTools/scripts/ftpmirror.py2
-rwxr-xr-xTools/scripts/h2py.py2
-rwxr-xr-xTools/scripts/ifdef.py2
-rwxr-xr-xTools/scripts/linktree.py2
-rwxr-xr-xTools/scripts/lll.py2
-rwxr-xr-xTools/scripts/methfix.py2
-rwxr-xr-xTools/scripts/mkreal.py2
-rwxr-xr-xTools/scripts/objgraph.py2
-rwxr-xr-xTools/scripts/pdeps.py2
-rwxr-xr-xTools/scripts/pindent.py3
-rwxr-xr-xTools/scripts/ptags.py2
-rwxr-xr-xTools/scripts/pystone.py2
-rwxr-xr-xTools/scripts/suff.py2
-rwxr-xr-xTools/scripts/sum5.py2
-rwxr-xr-xTools/scripts/which.py2
-rwxr-xr-xTools/scripts/xxci.py2
141 files changed, 146 insertions, 143 deletions
diff --git a/Demo/comparisons/regextest.py b/Demo/comparisons/regextest.py
index 35ee9eed77..97564b7939 100755
--- a/Demo/comparisons/regextest.py
+++ b/Demo/comparisons/regextest.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# 1) Regular Expressions Test
#
diff --git a/Demo/comparisons/sortingtest.py b/Demo/comparisons/sortingtest.py
index 1de683bafd..d6c213ca75 100755
--- a/Demo/comparisons/sortingtest.py
+++ b/Demo/comparisons/sortingtest.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# 2) Sorting Test
#
diff --git a/Demo/comparisons/systemtest.py b/Demo/comparisons/systemtest.py
index 26d9f548db..f2533b1c0c 100755
--- a/Demo/comparisons/systemtest.py
+++ b/Demo/comparisons/systemtest.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# 3) System Test
#
diff --git a/Demo/ibrowse/ib.py b/Demo/ibrowse/ib.py
index 588270ed49..ce6e16a2fc 100755
--- a/Demo/ibrowse/ib.py
+++ b/Demo/ibrowse/ib.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Call ibrowse (the info file browser) under UNIX.
diff --git a/Demo/parser/test_parser.py b/Demo/parser/test_parser.py
index e114d7634f..f91592f1d6 100755
--- a/Demo/parser/test_parser.py
+++ b/Demo/parser/test_parser.py
@@ -1,4 +1,4 @@
-#! /projects/python/Python-1.4b2/python
+#! /usr/bin/env python
# (Force the script to use the latest build.)
#
# test_parser.py
diff --git a/Demo/pdist/RCSProxy.py b/Demo/pdist/RCSProxy.py
index ed55e9ff1c..e29090c12a 100755
--- a/Demo/pdist/RCSProxy.py
+++ b/Demo/pdist/RCSProxy.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
"""RCS Proxy.
diff --git a/Demo/pdist/makechangelog.py b/Demo/pdist/makechangelog.py
index ec7f1162ec..5a0cf7991c 100755
--- a/Demo/pdist/makechangelog.py
+++ b/Demo/pdist/makechangelog.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
"""Turn a pile of RCS log output into ChangeLog file entries.
diff --git a/Demo/pdist/rcvs.py b/Demo/pdist/rcvs.py
index 7920c18be8..9129c28158 100755
--- a/Demo/pdist/rcvs.py
+++ b/Demo/pdist/rcvs.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
"""Remote CVS -- command line interface"""
diff --git a/Demo/pdist/rrcs.py b/Demo/pdist/rrcs.py
index 4f04198bc3..ecb01a29dc 100755
--- a/Demo/pdist/rrcs.py
+++ b/Demo/pdist/rrcs.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
"Remote RCS -- command line interface"
diff --git a/Demo/scripts/eqfix.py b/Demo/scripts/eqfix.py
index 794221af10..583d54e0e7 100755
--- a/Demo/scripts/eqfix.py
+++ b/Demo/scripts/eqfix.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Fix Python source files to use the new equality test operator, i.e.,
# if x = y: ...
diff --git a/Demo/scripts/fact.py b/Demo/scripts/fact.py
index bf49afcc44..6cc389ea6f 100755
--- a/Demo/scripts/fact.py
+++ b/Demo/scripts/fact.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Factorize numbers.
# The algorithm is not efficient, but easy to understand.
diff --git a/Demo/scripts/from.py b/Demo/scripts/from.py
index 4c01b4c3a8..9f749aea60 100755
--- a/Demo/scripts/from.py
+++ b/Demo/scripts/from.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Print From and Subject of messages in $MAIL.
# Extension to multiple mailboxes and other bells & whistles are left
diff --git a/Demo/scripts/ftpstats.py b/Demo/scripts/ftpstats.py
index 9c643fe51e..e931751f82 100755
--- a/Demo/scripts/ftpstats.py
+++ b/Demo/scripts/ftpstats.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Extract statistics from ftp daemon log.
diff --git a/Demo/scripts/lpwatch.py b/Demo/scripts/lpwatch.py
index af7d9144b0..9f051ebbf3 100755
--- a/Demo/scripts/lpwatch.py
+++ b/Demo/scripts/lpwatch.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Watch line printer queue(s).
# Intended for BSD 4.3 lpq.
diff --git a/Demo/scripts/makedir.py b/Demo/scripts/makedir.py
index 563c83fe4c..58efe0e0fb 100755
--- a/Demo/scripts/makedir.py
+++ b/Demo/scripts/makedir.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Like mkdir, but also make intermediate directories if necessary.
# It is not an error if the given directory already exists (as long
diff --git a/Demo/scripts/markov.py b/Demo/scripts/markov.py
index 6a6d2b2c48..6bd62d0249 100755
--- a/Demo/scripts/markov.py
+++ b/Demo/scripts/markov.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
class Markov:
def __init__(self, histsize, choice):
diff --git a/Demo/scripts/mboxconvert.py b/Demo/scripts/mboxconvert.py
index ecd6965de9..08e0d0cbe5 100755
--- a/Demo/scripts/mboxconvert.py
+++ b/Demo/scripts/mboxconvert.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Convert MH directories (1 message per file) or MMDF mailboxes (4x^A
# delimited) to unix mailbox (From ... delimited) on stdout.
diff --git a/Demo/scripts/mkrcs.py b/Demo/scripts/mkrcs.py
index 2009f8c121..36a35eace2 100755
--- a/Demo/scripts/mkrcs.py
+++ b/Demo/scripts/mkrcs.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# A rather specialized script to make sure that a symbolic link named
# RCS exists pointing to a real RCS directory in a parallel tree
diff --git a/Demo/scripts/mpzpi.py b/Demo/scripts/mpzpi.py
index 776c095e07..93c74aa398 100755
--- a/Demo/scripts/mpzpi.py
+++ b/Demo/scripts/mpzpi.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Print digits of pi forever.
#
# The algorithm, using Python's 'long' integers ("bignums"), works
diff --git a/Demo/scripts/newslist.py b/Demo/scripts/newslist.py
index 4c5376d48b..2aa2b18bc6 100755
--- a/Demo/scripts/newslist.py
+++ b/Demo/scripts/newslist.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
#######################################################################
# Newslist $Revision$
#
diff --git a/Demo/scripts/pi.py b/Demo/scripts/pi.py
index 200cb4ae8d..e73e7eccd4 100755
--- a/Demo/scripts/pi.py
+++ b/Demo/scripts/pi.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Print digits of pi forever.
#
diff --git a/Demo/scripts/pp.py b/Demo/scripts/pp.py
index eaf7e41537..24960466e4 100755
--- a/Demo/scripts/pp.py
+++ b/Demo/scripts/pp.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Emulate some Perl command line options.
# Usage: pp [-a] [-c] [-d] [-e scriptline] [-F fieldsep] [-n] [-p] [file] ...
diff --git a/Demo/scripts/primes.py b/Demo/scripts/primes.py
index 3e6a64623f..477c57bda9 100755
--- a/Demo/scripts/primes.py
+++ b/Demo/scripts/primes.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Print prime numbers in a given range
diff --git a/Demo/scripts/script.py b/Demo/scripts/script.py
index 04e7ecb2bf..cbad3679d1 100755
--- a/Demo/scripts/script.py
+++ b/Demo/scripts/script.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# script.py -- Make typescript of terminal session.
# Usage:
# -a Append to typescript.
diff --git a/Demo/scripts/unbirthday.py b/Demo/scripts/unbirthday.py
index cb018b654c..2c515c4b70 100755
--- a/Demo/scripts/unbirthday.py
+++ b/Demo/scripts/unbirthday.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Calculate your unbirthday count (see Alice in Wonderland).
# This is defined as the number of days from your birth until today
diff --git a/Demo/scripts/update.py b/Demo/scripts/update.py
index e8f6283676..2db65dcb29 100755
--- a/Demo/scripts/update.py
+++ b/Demo/scripts/update.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Update a bunch of files according to a script.
# The input file contains lines of the form <filename>:<lineno>:<text>,
diff --git a/Demo/sgi/al/broadcast.py b/Demo/sgi/al/broadcast.py
index ce4875e1fc..9d88dac5f6 100755
--- a/Demo/sgi/al/broadcast.py
+++ b/Demo/sgi/al/broadcast.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# broadcast [port]
#
diff --git a/Demo/sgi/al/radio.py b/Demo/sgi/al/radio.py
index a6f6809187..b9d30d2fa8 100755
--- a/Demo/sgi/al/radio.py
+++ b/Demo/sgi/al/radio.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# radio [port]
#
diff --git a/Demo/sgi/al/unicast.py b/Demo/sgi/al/unicast.py
index c9f3111fee..0d537b180f 100755
--- a/Demo/sgi/al/unicast.py
+++ b/Demo/sgi/al/unicast.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# unicast host [port]
#
diff --git a/Demo/sgi/audio/play.py b/Demo/sgi/audio/play.py
index adc76252d8..68a6a31bbb 100755
--- a/Demo/sgi/audio/play.py
+++ b/Demo/sgi/audio/play.py
@@ -1,4 +1,4 @@
-#! /usr/local/python
+#! /usr/bin/env python
import sys
import audio
diff --git a/Demo/sgi/audio_stdwin/jukebox.py b/Demo/sgi/audio_stdwin/jukebox.py
index b2239929a9..2aaaa831d0 100755
--- a/Demo/sgi/audio_stdwin/jukebox.py
+++ b/Demo/sgi/audio_stdwin/jukebox.py
@@ -1,4 +1,4 @@
-#! /usr/local/python
+#! /usr/bin/env python
# JUKEBOX: browse directories full of sampled sound files.
#
diff --git a/Demo/sgi/audio_stdwin/rec.py b/Demo/sgi/audio_stdwin/rec.py
index 0caba89826..76e924e309 100755
--- a/Demo/sgi/audio_stdwin/rec.py
+++ b/Demo/sgi/audio_stdwin/rec.py
@@ -1,4 +1,4 @@
-#! /ufs/guido/bin/sgi/python
+#! /usr/bin/env python
import sys
import audio
diff --git a/Demo/sgi/audio_stdwin/vumeter.py b/Demo/sgi/audio_stdwin/vumeter.py
index bfee66e86d..e27c53865e 100755
--- a/Demo/sgi/audio_stdwin/vumeter.py
+++ b/Demo/sgi/audio_stdwin/vumeter.py
@@ -1,4 +1,4 @@
-#! /usr/local/python
+#! /usr/bin/env python
import audio
import stdwin
diff --git a/Demo/sgi/gl/backface.py b/Demo/sgi/gl/backface.py
index 39929bef0d..41c69d60a2 100755
--- a/Demo/sgi/gl/backface.py
+++ b/Demo/sgi/gl/backface.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# backface
#
diff --git a/Demo/sgi/gl/glinfo.py b/Demo/sgi/gl/glinfo.py
index 2b6c356e1b..dae99f1583 100755
--- a/Demo/sgi/gl/glinfo.py
+++ b/Demo/sgi/gl/glinfo.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Print the values of all values that can be inquired with getgdesc().
# See man getgdesc() for a description.
diff --git a/Demo/sgi/gl/kites.py b/Demo/sgi/gl/kites.py
index 6e3dea6f49..be56513f37 100755
--- a/Demo/sgi/gl/kites.py
+++ b/Demo/sgi/gl/kites.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# *** This only works correctly on a 24 bit-plane machine. ***
#
diff --git a/Demo/sgi/gl/kunst.py b/Demo/sgi/gl/kunst.py
index 2055e52e83..6d9e04d19e 100755
--- a/Demo/sgi/gl/kunst.py
+++ b/Demo/sgi/gl/kunst.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Simulate the artwork in the hall.
# Jack Jansen, Feb 91.
diff --git a/Demo/sgi/gl/mclock.py b/Demo/sgi/gl/mclock.py
index ec39de9c8b..b1dfa1b0f1 100755
--- a/Demo/sgi/gl/mclock.py
+++ b/Demo/sgi/gl/mclock.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# "M Clock"
#
diff --git a/Demo/sgi/gl/mixing.py b/Demo/sgi/gl/mixing.py
index 57dea9c865..9a4c9c1fca 100755
--- a/Demo/sgi/gl/mixing.py
+++ b/Demo/sgi/gl/mixing.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Use Gouraud shading to mix colors. Requires Z-buffer.
# It changes the color assignments so fast that you see white.
diff --git a/Demo/sgi/gl/nurbs.py b/Demo/sgi/gl/nurbs.py
index af2039bc22..c33cb4e964 100755
--- a/Demo/sgi/gl/nurbs.py
+++ b/Demo/sgi/gl/nurbs.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Rotate a 3D surface created using NURBS.
#
diff --git a/Demo/sgi/gl/zrgb.py b/Demo/sgi/gl/zrgb.py
index 6561e11b78..2ad68c997b 100755
--- a/Demo/sgi/gl/zrgb.py
+++ b/Demo/sgi/gl/zrgb.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# zrgb (Requires Z buffer.)
#
diff --git a/Demo/sgi/video/Dsend.py b/Demo/sgi/video/Dsend.py
index da94c6f78a..7e197f7df9 100755
--- a/Demo/sgi/video/Dsend.py
+++ b/Demo/sgi/video/Dsend.py
@@ -1,4 +1,4 @@
-#!/ufs/guido/bin/sgi/python
+#! /usr/bin/env python
# Send live video UDP packets.
# Usage: Vsend [-b] [-h height] [-p port] [-s size] [-t ttl] [-w width]
diff --git a/Demo/sgi/video/OldVcopy.py b/Demo/sgi/video/OldVcopy.py
index 61461f40a6..697a51a65e 100755
--- a/Demo/sgi/video/OldVcopy.py
+++ b/Demo/sgi/video/OldVcopy.py
@@ -1,4 +1,4 @@
-#! /ufs/guido/bin/sgi/python
+#! /usr/bin/env python
# Copy a video file, interactively, frame-by-frame.
diff --git a/Demo/sgi/video/Vaddcache.py b/Demo/sgi/video/Vaddcache.py
index 6428fcbce3..4c8fdac1c6 100755
--- a/Demo/sgi/video/Vaddcache.py
+++ b/Demo/sgi/video/Vaddcache.py
@@ -1,4 +1,4 @@
-#! /ufs/guido/bin/sgi/python
+#! /usr/bin/env python
# Add a cache to each of the files given as command line arguments
diff --git a/Demo/sgi/video/Vb.py b/Demo/sgi/video/Vb.py
index 093bcf7ed0..ec59f22f56 100755
--- a/Demo/sgi/video/Vb.py
+++ b/Demo/sgi/video/Vb.py
@@ -1,4 +1,4 @@
-#! /ufs/guido/bin/sgi/python
+#! /usr/bin/env python
# Video bag of tricks: record video(+audio) in various formats and modes
diff --git a/Demo/sgi/video/Vcopy.py b/Demo/sgi/video/Vcopy.py
index 59c06a0f69..0861457980 100755
--- a/Demo/sgi/video/Vcopy.py
+++ b/Demo/sgi/video/Vcopy.py
@@ -1,4 +1,4 @@
-#! /ufs/guido/bin/sgi/python
+#! /usr/bin/env python
# Universal (non-interactive) CMIF video file copier.
diff --git a/Demo/sgi/video/Vedit.py b/Demo/sgi/video/Vedit.py
index 0174e9f8d8..60ef49fabe 100755
--- a/Demo/sgi/video/Vedit.py
+++ b/Demo/sgi/video/Vedit.py
@@ -1,4 +1,4 @@
-#! /ufs/guido/bin/sgi/python
+#! /usr/bin/env python
# Edit CMIF movies interactively -- copy one or more files to an output file
diff --git a/Demo/sgi/video/Vfix.py b/Demo/sgi/video/Vfix.py
index 6b2602399c..4870c1b979 100755
--- a/Demo/sgi/video/Vfix.py
+++ b/Demo/sgi/video/Vfix.py
@@ -1,4 +1,4 @@
-#!/ufs/guido/bin/sgi/python
+#! /usr/bin/env python
# Copy a video file, fixing the line width to be a multiple of 4
diff --git a/Demo/sgi/video/Vinfo.py b/Demo/sgi/video/Vinfo.py
index c4177dc842..0d9d29423c 100755
--- a/Demo/sgi/video/Vinfo.py
+++ b/Demo/sgi/video/Vinfo.py
@@ -1,4 +1,4 @@
-#! /ufs/guido/bin/sgi/python
+#! /usr/bin/env python
# Print some info about a CMIF movie file
diff --git a/Demo/sgi/video/Vmkjpeg.py b/Demo/sgi/video/Vmkjpeg.py
index 4e4c28ebf4..0c9687a8c5 100755
--- a/Demo/sgi/video/Vmkjpeg.py
+++ b/Demo/sgi/video/Vmkjpeg.py
@@ -1,4 +1,4 @@
-#!/ufs/guido/bin/sgi/python
+#! /usr/bin/env python
# Compress an rgb or grey video file to jpeg format
diff --git a/Demo/sgi/video/Vplay.py b/Demo/sgi/video/Vplay.py
index 79b3ad41d3..176c0e5a0c 100755
--- a/Demo/sgi/video/Vplay.py
+++ b/Demo/sgi/video/Vplay.py
@@ -1,4 +1,4 @@
-#! /ufs/guido/bin/sgi/python
+#! /usr/bin/env python
# Play CMIF movie files
diff --git a/Demo/sgi/video/Vrec.py b/Demo/sgi/video/Vrec.py
index 9d90a8073d..b647bd35df 100755
--- a/Demo/sgi/video/Vrec.py
+++ b/Demo/sgi/video/Vrec.py
@@ -1,4 +1,4 @@
-#! /ufs/guido/bin/sgi/python
+#! /usr/bin/env python
#! /ufs/guido/bin/sgi/python-405
# Capture a CMIF movie using the Indigo video library and board
diff --git a/Demo/sgi/video/Vrecb.py b/Demo/sgi/video/Vrecb.py
index ca81753ae6..d65b35f346 100755
--- a/Demo/sgi/video/Vrecb.py
+++ b/Demo/sgi/video/Vrecb.py
@@ -1,4 +1,4 @@
-#! /ufs/guido/bin/sgi/python
+#! /usr/bin/env python
# Capture a CMIF movie using the Indigo video library and board in burst mode
diff --git a/Demo/sgi/video/Vreceive.py b/Demo/sgi/video/Vreceive.py
index f72c6a5920..84aa5a531b 100755
--- a/Demo/sgi/video/Vreceive.py
+++ b/Demo/sgi/video/Vreceive.py
@@ -1,4 +1,4 @@
-#!/ufs/guido/bin/sgi/python
+#! /usr/bin/env python
# Receive live video UDP packets.
# Usage: Vreceive [port]
diff --git a/Demo/sgi/video/Vsend.py b/Demo/sgi/video/Vsend.py
index 223bbf302b..4c4786140c 100755
--- a/Demo/sgi/video/Vsend.py
+++ b/Demo/sgi/video/Vsend.py
@@ -1,4 +1,4 @@
-#!/ufs/guido/bin/sgi/python
+#! /usr/bin/env python
# Send live video UDP packets.
# Usage: Vsend [-b] [-h height] [-p port] [-s size] [-t ttl] [-w width]
diff --git a/Demo/sgi/video/Vstat.py b/Demo/sgi/video/Vstat.py
index cc0ecfb54a..a29b1ff04b 100755
--- a/Demo/sgi/video/Vstat.py
+++ b/Demo/sgi/video/Vstat.py
@@ -1,4 +1,4 @@
-#! /ufs/guido/bin/sgi/python
+#! /usr/bin/env python
# Print the value of all video parameters
diff --git a/Demo/sgi/video/Vtime.py b/Demo/sgi/video/Vtime.py
index be161ccb67..34b3b44aa5 100755
--- a/Demo/sgi/video/Vtime.py
+++ b/Demo/sgi/video/Vtime.py
@@ -1,4 +1,4 @@
-#! /ufs/guido/bin/sgi/python
+#! /usr/bin/env python
# Manipulate the time base of CMIF movies
diff --git a/Demo/sgi/video/Vunjpeg.py b/Demo/sgi/video/Vunjpeg.py
index 9f21f959ff..3321d23e87 100755
--- a/Demo/sgi/video/Vunjpeg.py
+++ b/Demo/sgi/video/Vunjpeg.py
@@ -1,4 +1,4 @@
-#!/ufs/guido/bin/sgi/python
+#! /usr/bin/env python
# Decompress a jpeg or jpeggrey video file to rgb format
diff --git a/Demo/sgi/video/aplay.py b/Demo/sgi/video/aplay.py
index 7b1002722c..a11f95a5e3 100755
--- a/Demo/sgi/video/aplay.py
+++ b/Demo/sgi/video/aplay.py
@@ -1,4 +1,4 @@
-#! /ufs/guido/bin/sgi/python
+#! /usr/bin/env python
# Play synchronous video and audio.
# Highly experimental!
diff --git a/Demo/sgi/video/video2rgb.py b/Demo/sgi/video/video2rgb.py
index 7070a93342..bbfa6b8238 100755
--- a/Demo/sgi/video/video2rgb.py
+++ b/Demo/sgi/video/video2rgb.py
@@ -1,4 +1,4 @@
-#! /ufs/guido/bin/sgi/python
+#! /usr/bin/env python
# Convert CMIF movie file(s) to a sequence of rgb images
diff --git a/Demo/sockets/echosvr.py b/Demo/sockets/echosvr.py
index acf0a393df..c1acf6cc6c 100755
--- a/Demo/sockets/echosvr.py
+++ b/Demo/sockets/echosvr.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Python implementation of an 'echo' tcp server: echo all data it receives.
#
diff --git a/Demo/sockets/finger.py b/Demo/sockets/finger.py
index 71e307ffa6..b941d0e2c4 100755
--- a/Demo/sockets/finger.py
+++ b/Demo/sockets/finger.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Python interface to the Internet finger daemon.
#
diff --git a/Demo/sockets/gopher.py b/Demo/sockets/gopher.py
index f30ab0f1c8..a2ab3a2f6c 100755
--- a/Demo/sockets/gopher.py
+++ b/Demo/sockets/gopher.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# A simple gopher client.
#
diff --git a/Demo/sockets/rpython.py b/Demo/sockets/rpython.py
index 9548301893..77b2a7a516 100755
--- a/Demo/sockets/rpython.py
+++ b/Demo/sockets/rpython.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Remote python client.
# Execute Python commands remotely and send output back.
diff --git a/Demo/sockets/rpythond.py b/Demo/sockets/rpythond.py
index f67570bc95..e8cdaa9501 100755
--- a/Demo/sockets/rpythond.py
+++ b/Demo/sockets/rpythond.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Remote python server.
# Execute Python commands remotely and send output back.
diff --git a/Demo/sockets/telnet.py b/Demo/sockets/telnet.py
index 3bb36efdc2..e83ce55d68 100755
--- a/Demo/sockets/telnet.py
+++ b/Demo/sockets/telnet.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Minimal interface to the Internet telnet protocol.
#
diff --git a/Demo/sockets/throughput.py b/Demo/sockets/throughput.py
index fd946b44ec..58975bf51d 100755
--- a/Demo/sockets/throughput.py
+++ b/Demo/sockets/throughput.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Test network throughput.
#
diff --git a/Demo/sockets/udpecho.py b/Demo/sockets/udpecho.py
index 8839eb8057..8fce547f56 100755
--- a/Demo/sockets/udpecho.py
+++ b/Demo/sockets/udpecho.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Client and server for udp (datagram) echo.
#
diff --git a/Demo/stdwin/FormTest.py b/Demo/stdwin/FormTest.py
index ce62802ebf..15e3b36b5b 100755
--- a/Demo/stdwin/FormTest.py
+++ b/Demo/stdwin/FormTest.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
testlabels = 'Name', 'Address', 'City', 'Country', 'Comments'
diff --git a/Demo/stdwin/RadioGroups.py b/Demo/stdwin/RadioGroups.py
index fcd693f65b..93b6a2d091 100755
--- a/Demo/stdwin/RadioGroups.py
+++ b/Demo/stdwin/RadioGroups.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# radiogroups.py
#
diff --git a/Demo/stdwin/TestCSplit.py b/Demo/stdwin/TestCSplit.py
index 9297e46b60..720b8c3906 100755
--- a/Demo/stdwin/TestCSplit.py
+++ b/Demo/stdwin/TestCSplit.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# TestCSplit
diff --git a/Demo/stdwin/TestDirList.py b/Demo/stdwin/TestDirList.py
index 7fb45ae4d0..321c2d92b3 100755
--- a/Demo/stdwin/TestDirList.py
+++ b/Demo/stdwin/TestDirList.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# TestDirList
diff --git a/Demo/stdwin/TestFormSplit.py b/Demo/stdwin/TestFormSplit.py
index 2750378311..e67c3f9641 100755
--- a/Demo/stdwin/TestFormSplit.py
+++ b/Demo/stdwin/TestFormSplit.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# TestFormSplit
diff --git a/Demo/stdwin/TestSched.py b/Demo/stdwin/TestSched.py
index f6bbe23688..29274e6777 100755
--- a/Demo/stdwin/TestSched.py
+++ b/Demo/stdwin/TestSched.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# TestSched
diff --git a/Demo/stdwin/TestTextEdit.py b/Demo/stdwin/TestTextEdit.py
index 9f4c86117d..b15b049c43 100755
--- a/Demo/stdwin/TestTextEdit.py
+++ b/Demo/stdwin/TestTextEdit.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Test TextEdit widgets
diff --git a/Demo/stdwin/clock.py b/Demo/stdwin/clock.py
index 4328b7b40c..90f1d22bce 100755
--- a/Demo/stdwin/clock.py
+++ b/Demo/stdwin/clock.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# 'clock' -- A simple alarm clock
diff --git a/Demo/stdwin/ibrowse/ib.py b/Demo/stdwin/ibrowse/ib.py
index 588270ed49..ce6e16a2fc 100755
--- a/Demo/stdwin/ibrowse/ib.py
+++ b/Demo/stdwin/ibrowse/ib.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Call ibrowse (the info file browser) under UNIX.
diff --git a/Demo/stdwin/jukebox.py b/Demo/stdwin/jukebox.py
index e218e666c7..e3c9db8b28 100755
--- a/Demo/stdwin/jukebox.py
+++ b/Demo/stdwin/jukebox.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# XXX This only works on SGIs running IRIX 4.0 or higher
diff --git a/Demo/stdwin/lpwin.py b/Demo/stdwin/lpwin.py
index eaf98bea34..519b428061 100755
--- a/Demo/stdwin/lpwin.py
+++ b/Demo/stdwin/lpwin.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Watch line printer queues (only works with BSD 4.3 lpq).
#
diff --git a/Demo/stdwin/microedit.py b/Demo/stdwin/microedit.py
index eca093a188..1091676a49 100755
--- a/Demo/stdwin/microedit.py
+++ b/Demo/stdwin/microedit.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# A minimal single-window text editor using STDWIN's text objects.
#
diff --git a/Demo/stdwin/miniedit.py b/Demo/stdwin/miniedit.py
index 3d4aeeaa0d..9a11c2da11 100755
--- a/Demo/stdwin/miniedit.py
+++ b/Demo/stdwin/miniedit.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# A miniature multi-window editor using STDWIN's text objects.
#
diff --git a/Demo/stdwin/python.py b/Demo/stdwin/python.py
index 29b0495fd7..8a3dfce1ba 100755
--- a/Demo/stdwin/python.py
+++ b/Demo/stdwin/python.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# A STDWIN-based front end for the Python interpreter.
#
diff --git a/Demo/stdwin/wdiff.py b/Demo/stdwin/wdiff.py
index 60be86dcf6..b8c8da3731 100755
--- a/Demo/stdwin/wdiff.py
+++ b/Demo/stdwin/wdiff.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# A window-oriented recursive diff utility.
# NB: This uses undocumented window classing modules.
diff --git a/Demo/tkinter/guido/MimeViewer.py b/Demo/tkinter/guido/MimeViewer.py
index 06b7a882ed..2b98579810 100755
--- a/Demo/tkinter/guido/MimeViewer.py
+++ b/Demo/tkinter/guido/MimeViewer.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# View a single MIME multipart message.
# Display each part as a box.
diff --git a/Demo/tkinter/guido/dialog.py b/Demo/tkinter/guido/dialog.py
index 500a73d92d..62ad3e31cf 100755
--- a/Demo/tkinter/guido/dialog.py
+++ b/Demo/tkinter/guido/dialog.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# A Python function that generates dialog boxes with a text message,
# optional bitmap, and any number of buttons.
diff --git a/Demo/tkinter/guido/electrons.py b/Demo/tkinter/guido/electrons.py
index 7296955328..f3b80081d0 100755
--- a/Demo/tkinter/guido/electrons.py
+++ b/Demo/tkinter/guido/electrons.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Simulate "electrons" migrating across the screen.
# An optional bitmap file in can be in the background.
diff --git a/Demo/tkinter/guido/kill.py b/Demo/tkinter/guido/kill.py
index 24335cc549..577af8b8b8 100755
--- a/Demo/tkinter/guido/kill.py
+++ b/Demo/tkinter/guido/kill.py
@@ -1,4 +1,4 @@
-#!/usr/local/bin/python
+#! /usr/bin/env python
# Tkinter interface to Linux `kill' command.
from Tkinter import *
diff --git a/Demo/tkinter/guido/mbox.py b/Demo/tkinter/guido/mbox.py
index 338231147b..9aea7ee5b1 100755
--- a/Demo/tkinter/guido/mbox.py
+++ b/Demo/tkinter/guido/mbox.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Scan MH folder, display results in window
diff --git a/Demo/tkinter/guido/rmt.py b/Demo/tkinter/guido/rmt.py
index f9f1785033..6e9a8288fa 100755
--- a/Demo/tkinter/guido/rmt.py
+++ b/Demo/tkinter/guido/rmt.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# A Python program implementing rmt, an application for remotely
# controlling other Tk applications.
diff --git a/Demo/tkinter/guido/svkill.py b/Demo/tkinter/guido/svkill.py
index dd80856686..1c54e4b165 100755
--- a/Demo/tkinter/guido/svkill.py
+++ b/Demo/tkinter/guido/svkill.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Tkinter interface to SYSV `ps' and `kill' commands.
diff --git a/Demo/tkinter/guido/tkman.py b/Demo/tkinter/guido/tkman.py
index 34ca4a3338..70aaae3e18 100755
--- a/Demo/tkinter/guido/tkman.py
+++ b/Demo/tkinter/guido/tkman.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Tk man page browser -- currently only shows the Tcl/Tk man pages
diff --git a/Demo/tkinter/www/www1.py b/Demo/tkinter/www/www1.py
index dc30e215ad..558fd740f3 100755
--- a/Demo/tkinter/www/www1.py
+++ b/Demo/tkinter/www/www1.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# www1.py -- print the contents of a URL on stdout
diff --git a/Demo/tkinter/www/www10.py b/Demo/tkinter/www/www10.py
index def5196de8..eef5220281 100755
--- a/Demo/tkinter/www/www10.py
+++ b/Demo/tkinter/www/www10.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# www10.py -- display the contents of a URL in a Text widget
# - set window title
diff --git a/Demo/tkinter/www/www11.py b/Demo/tkinter/www/www11.py
index 59b71c09c7..0b13ce1c0d 100755
--- a/Demo/tkinter/www/www11.py
+++ b/Demo/tkinter/www/www11.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# www11.py -- display the contents of a URL in a Text widget
# - set window title
diff --git a/Demo/tkinter/www/www12.py b/Demo/tkinter/www/www12.py
index 2e870c4783..78884c9d36 100755
--- a/Demo/tkinter/www/www12.py
+++ b/Demo/tkinter/www/www12.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# www12.py -- display the contents of a URL in a Text widget
# - set window title
diff --git a/Demo/tkinter/www/www13.py b/Demo/tkinter/www/www13.py
index af9b176a51..90de01633d 100755
--- a/Demo/tkinter/www/www13.py
+++ b/Demo/tkinter/www/www13.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# www13.py -- display the contents of a URL in a Text widget
# - set window title
diff --git a/Demo/tkinter/www/www2.py b/Demo/tkinter/www/www2.py
index d14306ab05..3501803e07 100755
--- a/Demo/tkinter/www/www2.py
+++ b/Demo/tkinter/www/www2.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# www2.py -- print the contents of a URL on stdout
# - error checking
diff --git a/Demo/tkinter/www/www3.py b/Demo/tkinter/www/www3.py
index eb8b07f416..e1b1bc5b4b 100755
--- a/Demo/tkinter/www/www3.py
+++ b/Demo/tkinter/www/www3.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# www3.py -- print the contents of a URL on stdout
# - error checking
diff --git a/Demo/tkinter/www/www4.py b/Demo/tkinter/www/www4.py
index 4351004ca4..b916dca117 100755
--- a/Demo/tkinter/www/www4.py
+++ b/Demo/tkinter/www/www4.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# www4.py -- display the contents of a URL in a Text widget
diff --git a/Demo/tkinter/www/www5.py b/Demo/tkinter/www/www5.py
index 0ea451f21d..83f6ab9b6a 100755
--- a/Demo/tkinter/www/www5.py
+++ b/Demo/tkinter/www/www5.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# www5.py -- display the contents of a URL in a Text widget
# - set window title
diff --git a/Demo/tkinter/www/www6.py b/Demo/tkinter/www/www6.py
index a9b0698397..a8824facc3 100755
--- a/Demo/tkinter/www/www6.py
+++ b/Demo/tkinter/www/www6.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# www6.py -- display the contents of a URL in a Text widget
# - set window title
diff --git a/Demo/tkinter/www/www7.py b/Demo/tkinter/www/www7.py
index cb4313d137..be66dc89b4 100755
--- a/Demo/tkinter/www/www7.py
+++ b/Demo/tkinter/www/www7.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# www7.py -- display the contents of a URL in a Text widget
# - set window title
diff --git a/Demo/tkinter/www/www8.py b/Demo/tkinter/www/www8.py
index 868a7ed452..097121b233 100755
--- a/Demo/tkinter/www/www8.py
+++ b/Demo/tkinter/www/www8.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# www8.py -- display the contents of a URL in a Text widget
# - set window title
diff --git a/Demo/tkinter/www/www9.py b/Demo/tkinter/www/www9.py
index 60b46ed885..12ca0f3c66 100755
--- a/Demo/tkinter/www/www9.py
+++ b/Demo/tkinter/www/www9.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# www9.py -- display the contents of a URL in a Text widget
# - set window title
diff --git a/Lib/cgi.py b/Lib/cgi.py
index 3f1a1c4e1e..7fab38d875 100755
--- a/Lib/cgi.py
+++ b/Lib/cgi.py
@@ -1,4 +1,4 @@
-#!/usr/local/bin/python
+#! /usr/bin/env python
"""Support module for CGI (Common Gateway Interface) scripts.
@@ -216,10 +216,14 @@ Unix file mode should be 755 (use "chmod 755 filename"). Make sure
that the first line of the script contains "#!" starting in column 1
followed by the pathname of the Python interpreter, for instance:
- #!/usr/local/bin/python
+ #! /usr/local/bin/python
Make sure the Python interpreter exists and is executable by "others".
+(Note that it's probably not a good idea to use #! /usr/bin/env python
+here, since the Python interpreter may not be on the default path
+given to CGI scripts!!!)
+
Make sure that any files your script needs to read or write are
readable or writable, respectively, by "others" -- their mode should
be 644 for readable and 666 for writable. This is because, for
diff --git a/Lib/mailbox.py b/Lib/mailbox.py
index 3d7d2fc7dc..36f58f568c 100755
--- a/Lib/mailbox.py
+++ b/Lib/mailbox.py
@@ -1,4 +1,4 @@
-#!/usr/local/bin/python
+#! /usr/bin/env python
"""Classes to handle Unix style, MMDF style, and MH style mailboxes."""
diff --git a/Lib/mimify.py b/Lib/mimify.py
index 0b2bb1ba73..ce4c4baebf 100755
--- a/Lib/mimify.py
+++ b/Lib/mimify.py
@@ -1,4 +1,4 @@
-#!/usr/local/bin/python
+#! /usr/bin/env python
'''Mimification and unmimification of mail messages.
diff --git a/Lib/pdb.py b/Lib/pdb.py
index 62927a3730..42080cc97b 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# pdb.py -- finally, a Python debugger!
diff --git a/Lib/profile.py b/Lib/profile.py
index 51e95cb895..582bd8a730 100755
--- a/Lib/profile.py
+++ b/Lib/profile.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
#
# Class for profiling python code. rev 1.0 6/2/94
#
diff --git a/Lib/test/pystone.py b/Lib/test/pystone.py
index 954e6c9ebf..c388982dbc 100755
--- a/Lib/test/pystone.py
+++ b/Lib/test/pystone.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
"""
"PYSTONE" Benchmark Program
diff --git a/Misc/Fixcprt.py b/Misc/Fixcprt.py
index fa28aaa087..f5337756f9 100755
--- a/Misc/Fixcprt.py
+++ b/Misc/Fixcprt.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
import regex
import regsub
diff --git a/Misc/faq2html.py b/Misc/faq2html.py
index 84346b49d6..32f3e79601 100755
--- a/Misc/faq2html.py
+++ b/Misc/faq2html.py
@@ -1,4 +1,4 @@
-#!/usr/local/bin/python
+#! /usr/bin/env python
# A somewhat-generalized FAQ-to-HTML converter (by Ka-Ping Yee, 10 Sept 96)
diff --git a/Misc/renumber.py b/Misc/renumber.py
index f2299b66f2..cc2d075f26 100755
--- a/Misc/renumber.py
+++ b/Misc/renumber.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Renumber the Python FAQ
diff --git a/Tools/freeze/freeze.py b/Tools/freeze/freeze.py
index eb91ecb584..7018acac44 100755
--- a/Tools/freeze/freeze.py
+++ b/Tools/freeze/freeze.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
"""Freeze a Python script into a binary.
diff --git a/Tools/modulator/Tkextra.py b/Tools/modulator/Tkextra.py
index 25681aed7d..15b16a9e60 100755
--- a/Tools/modulator/Tkextra.py
+++ b/Tools/modulator/Tkextra.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# A Python function that generates dialog boxes with a text message,
# optional bitmap, and any number of buttons.
diff --git a/Tools/modulator/modulator.py b/Tools/modulator/modulator.py
index 02ad80d572..da3ce12921 100755
--- a/Tools/modulator/modulator.py
+++ b/Tools/modulator/modulator.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
#
# Modulator - Generate skeleton modules.
#
diff --git a/Tools/scripts/byteyears.py b/Tools/scripts/byteyears.py
index 4abdca641c..bada5a538a 100755
--- a/Tools/scripts/byteyears.py
+++ b/Tools/scripts/byteyears.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Print the product of age and size of each file, in suitable units.
#
diff --git a/Tools/scripts/checkpyc.py b/Tools/scripts/checkpyc.py
index 6ef6492a0b..6df0472b28 100755
--- a/Tools/scripts/checkpyc.py
+++ b/Tools/scripts/checkpyc.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Check that all ".pyc" files exist and are up-to-date
# Uses module 'os'
diff --git a/Tools/scripts/classfix.py b/Tools/scripts/classfix.py
index e676051990..53ea0b88f1 100755
--- a/Tools/scripts/classfix.py
+++ b/Tools/scripts/classfix.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# This script is obsolete -- it is kept for historical purposes only.
#
diff --git a/Tools/scripts/copytime.py b/Tools/scripts/copytime.py
index 599e3370c1..d01643b181 100755
--- a/Tools/scripts/copytime.py
+++ b/Tools/scripts/copytime.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Copy one file's atime and mtime to another
diff --git a/Tools/scripts/dutree.py b/Tools/scripts/dutree.py
index 58d0b14542..4cb9353239 100755
--- a/Tools/scripts/dutree.py
+++ b/Tools/scripts/dutree.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Format du output in a tree shape
import os, string, sys
diff --git a/Tools/scripts/eptags.py b/Tools/scripts/eptags.py
index 63b5781347..86b6ee17c4 100755
--- a/Tools/scripts/eptags.py
+++ b/Tools/scripts/eptags.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# eptags
#
diff --git a/Tools/scripts/findlinksto.py b/Tools/scripts/findlinksto.py
index d2fc430b28..06821cd6cb 100755
--- a/Tools/scripts/findlinksto.py
+++ b/Tools/scripts/findlinksto.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# findlinksto
#
diff --git a/Tools/scripts/fixcid.py b/Tools/scripts/fixcid.py
index c1df5f3144..4c4d5853e2 100755
--- a/Tools/scripts/fixcid.py
+++ b/Tools/scripts/fixcid.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Perform massive identifier substitution on C source files.
# This actually tokenizes the files (to some extent) so it can
diff --git a/Tools/scripts/fixheader.py b/Tools/scripts/fixheader.py
index 8f121fa874..774b907e4f 100755
--- a/Tools/scripts/fixheader.py
+++ b/Tools/scripts/fixheader.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Add some standard cpp magic to a header file
diff --git a/Tools/scripts/ftpmirror.py b/Tools/scripts/ftpmirror.py
index 10520f91d5..7878847909 100755
--- a/Tools/scripts/ftpmirror.py
+++ b/Tools/scripts/ftpmirror.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Mirror a remote ftp subtree into a local directory tree.
# Basic usage: ftpmirror [options] host remotedir localdir
diff --git a/Tools/scripts/h2py.py b/Tools/scripts/h2py.py
index 581f92f288..c34073df5f 100755
--- a/Tools/scripts/h2py.py
+++ b/Tools/scripts/h2py.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Read #define's and translate to Python code.
# Handle #include statements.
diff --git a/Tools/scripts/ifdef.py b/Tools/scripts/ifdef.py
index 9d74be2fec..ff64425c9a 100755
--- a/Tools/scripts/ifdef.py
+++ b/Tools/scripts/ifdef.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Selectively preprocess #ifdef / #ifndef statements.
# Usage:
diff --git a/Tools/scripts/linktree.py b/Tools/scripts/linktree.py
index 3239434a0b..73825c9970 100755
--- a/Tools/scripts/linktree.py
+++ b/Tools/scripts/linktree.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# linktree
#
diff --git a/Tools/scripts/lll.py b/Tools/scripts/lll.py
index 0043645b4c..d107080e8e 100755
--- a/Tools/scripts/lll.py
+++ b/Tools/scripts/lll.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Find symbolic links and show where they point to.
# Arguments are directories to search; default is current directory.
diff --git a/Tools/scripts/methfix.py b/Tools/scripts/methfix.py
index 60f2a56cbc..b0918d61a2 100755
--- a/Tools/scripts/methfix.py
+++ b/Tools/scripts/methfix.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Fix Python source files to avoid using
# def method(self, (arg1, ..., argn)):
diff --git a/Tools/scripts/mkreal.py b/Tools/scripts/mkreal.py
index bc4dd1300a..a065c1759a 100755
--- a/Tools/scripts/mkreal.py
+++ b/Tools/scripts/mkreal.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# mkreal
#
diff --git a/Tools/scripts/objgraph.py b/Tools/scripts/objgraph.py
index c6bbe665a2..4eab79b883 100755
--- a/Tools/scripts/objgraph.py
+++ b/Tools/scripts/objgraph.py
@@ -1,4 +1,4 @@
-#!/usr/local/bin/python
+#! /usr/bin/env python
# objgraph
#
diff --git a/Tools/scripts/pdeps.py b/Tools/scripts/pdeps.py
index 8cf573fee3..fb730f1ed3 100755
--- a/Tools/scripts/pdeps.py
+++ b/Tools/scripts/pdeps.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# pdeps
#
diff --git a/Tools/scripts/pindent.py b/Tools/scripts/pindent.py
index 6432f4cc2d..1845ed8286 100755
--- a/Tools/scripts/pindent.py
+++ b/Tools/scripts/pindent.py
@@ -1,5 +1,4 @@
-#! /usr/local/bin/python
-#! /usr/local/bin/python
+#! /usr/bin/env python
# This file contains a class and a main program that perform two
# related (though complimentary) formatting operations on Python
diff --git a/Tools/scripts/ptags.py b/Tools/scripts/ptags.py
index b8fc232d78..f63746eb5d 100755
--- a/Tools/scripts/ptags.py
+++ b/Tools/scripts/ptags.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# ptags
#
diff --git a/Tools/scripts/pystone.py b/Tools/scripts/pystone.py
index 954e6c9ebf..c388982dbc 100755
--- a/Tools/scripts/pystone.py
+++ b/Tools/scripts/pystone.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
"""
"PYSTONE" Benchmark Program
diff --git a/Tools/scripts/suff.py b/Tools/scripts/suff.py
index 491fd3b482..826e236c3f 100755
--- a/Tools/scripts/suff.py
+++ b/Tools/scripts/suff.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# suff
#
diff --git a/Tools/scripts/sum5.py b/Tools/scripts/sum5.py
index fdb83faa13..09bc6863b2 100755
--- a/Tools/scripts/sum5.py
+++ b/Tools/scripts/sum5.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# print md5 checksum for files
diff --git a/Tools/scripts/which.py b/Tools/scripts/which.py
index 07c0d2e7d0..0aff2cd187 100755
--- a/Tools/scripts/which.py
+++ b/Tools/scripts/which.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# Variant of "which".
# On stderr, near and total misses are reported.
diff --git a/Tools/scripts/xxci.py b/Tools/scripts/xxci.py
index 9ab5669eb5..d8608a094c 100755
--- a/Tools/scripts/xxci.py
+++ b/Tools/scripts/xxci.py
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
# xxci
#