From f06ee5fa072931fc807527535c91a46c149a6746 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 27 Nov 1996 19:52:01 +0000 Subject: [PATCH] /usr/local/bin/python -> /usr/bin/env python --- Demo/comparisons/regextest.py | 2 +- Demo/comparisons/sortingtest.py | 2 +- Demo/comparisons/systemtest.py | 2 +- Demo/ibrowse/ib.py | 2 +- Demo/parser/test_parser.py | 2 +- Demo/pdist/RCSProxy.py | 2 +- Demo/pdist/makechangelog.py | 2 +- Demo/pdist/rcvs.py | 2 +- Demo/pdist/rrcs.py | 2 +- Demo/scripts/eqfix.py | 2 +- Demo/scripts/fact.py | 2 +- Demo/scripts/from.py | 2 +- Demo/scripts/ftpstats.py | 2 +- Demo/scripts/lpwatch.py | 2 +- Demo/scripts/makedir.py | 2 +- Demo/scripts/markov.py | 2 +- Demo/scripts/mboxconvert.py | 2 +- Demo/scripts/mkrcs.py | 2 +- Demo/scripts/mpzpi.py | 2 +- Demo/scripts/newslist.py | 2 +- Demo/scripts/pi.py | 2 +- Demo/scripts/pp.py | 2 +- Demo/scripts/primes.py | 2 +- Demo/scripts/script.py | 2 +- Demo/scripts/unbirthday.py | 2 +- Demo/scripts/update.py | 2 +- Demo/sgi/al/broadcast.py | 2 +- Demo/sgi/al/radio.py | 2 +- Demo/sgi/al/unicast.py | 2 +- Demo/sgi/audio/play.py | 2 +- Demo/sgi/audio_stdwin/jukebox.py | 2 +- Demo/sgi/audio_stdwin/rec.py | 2 +- Demo/sgi/audio_stdwin/vumeter.py | 2 +- Demo/sgi/gl/backface.py | 2 +- Demo/sgi/gl/glinfo.py | 2 +- Demo/sgi/gl/kites.py | 2 +- Demo/sgi/gl/kunst.py | 2 +- Demo/sgi/gl/mclock.py | 2 +- Demo/sgi/gl/mixing.py | 2 +- Demo/sgi/gl/nurbs.py | 2 +- Demo/sgi/gl/zrgb.py | 2 +- Demo/sgi/video/Dsend.py | 2 +- Demo/sgi/video/OldVcopy.py | 2 +- Demo/sgi/video/Vaddcache.py | 2 +- Demo/sgi/video/Vb.py | 2 +- Demo/sgi/video/Vcopy.py | 2 +- Demo/sgi/video/Vedit.py | 2 +- Demo/sgi/video/Vfix.py | 2 +- Demo/sgi/video/Vinfo.py | 2 +- Demo/sgi/video/Vmkjpeg.py | 2 +- Demo/sgi/video/Vplay.py | 2 +- Demo/sgi/video/Vrec.py | 2 +- Demo/sgi/video/Vrecb.py | 2 +- Demo/sgi/video/Vreceive.py | 2 +- Demo/sgi/video/Vsend.py | 2 +- Demo/sgi/video/Vstat.py | 2 +- Demo/sgi/video/Vtime.py | 2 +- Demo/sgi/video/Vunjpeg.py | 2 +- Demo/sgi/video/aplay.py | 2 +- Demo/sgi/video/video2rgb.py | 2 +- Demo/sockets/echosvr.py | 2 +- Demo/sockets/finger.py | 2 +- Demo/sockets/gopher.py | 2 +- Demo/sockets/rpython.py | 2 +- Demo/sockets/rpythond.py | 2 +- Demo/sockets/telnet.py | 2 +- Demo/sockets/throughput.py | 2 +- Demo/sockets/udpecho.py | 2 +- Demo/stdwin/FormTest.py | 2 +- Demo/stdwin/RadioGroups.py | 2 +- Demo/stdwin/TestCSplit.py | 2 +- Demo/stdwin/TestDirList.py | 2 +- Demo/stdwin/TestFormSplit.py | 2 +- Demo/stdwin/TestSched.py | 2 +- Demo/stdwin/TestTextEdit.py | 2 +- Demo/stdwin/clock.py | 2 +- Demo/stdwin/ibrowse/ib.py | 2 +- Demo/stdwin/jukebox.py | 2 +- Demo/stdwin/lpwin.py | 2 +- Demo/stdwin/microedit.py | 2 +- Demo/stdwin/miniedit.py | 2 +- Demo/stdwin/python.py | 2 +- Demo/stdwin/wdiff.py | 2 +- Demo/tkinter/guido/MimeViewer.py | 2 +- Demo/tkinter/guido/dialog.py | 2 +- Demo/tkinter/guido/electrons.py | 2 +- Demo/tkinter/guido/kill.py | 2 +- Demo/tkinter/guido/mbox.py | 2 +- Demo/tkinter/guido/rmt.py | 2 +- Demo/tkinter/guido/svkill.py | 2 +- Demo/tkinter/guido/tkman.py | 2 +- Demo/tkinter/www/www1.py | 2 +- Demo/tkinter/www/www10.py | 2 +- Demo/tkinter/www/www11.py | 2 +- Demo/tkinter/www/www12.py | 2 +- Demo/tkinter/www/www13.py | 2 +- Demo/tkinter/www/www2.py | 2 +- Demo/tkinter/www/www3.py | 2 +- Demo/tkinter/www/www4.py | 2 +- Demo/tkinter/www/www5.py | 2 +- Demo/tkinter/www/www6.py | 2 +- Demo/tkinter/www/www7.py | 2 +- Demo/tkinter/www/www8.py | 2 +- Demo/tkinter/www/www9.py | 2 +- Lib/cgi.py | 8 ++++++-- Lib/mailbox.py | 2 +- Lib/mimify.py | 2 +- Lib/pdb.py | 2 +- Lib/profile.py | 2 +- Lib/test/pystone.py | 2 +- Misc/Fixcprt.py | 2 +- Misc/faq2html.py | 2 +- Misc/renumber.py | 2 +- Tools/freeze/freeze.py | 2 +- Tools/modulator/Tkextra.py | 2 +- Tools/modulator/modulator.py | 2 +- Tools/scripts/byteyears.py | 2 +- Tools/scripts/checkpyc.py | 2 +- Tools/scripts/classfix.py | 2 +- Tools/scripts/copytime.py | 2 +- Tools/scripts/dutree.py | 2 +- Tools/scripts/eptags.py | 2 +- Tools/scripts/findlinksto.py | 2 +- Tools/scripts/fixcid.py | 2 +- Tools/scripts/fixheader.py | 2 +- Tools/scripts/ftpmirror.py | 2 +- Tools/scripts/h2py.py | 2 +- Tools/scripts/ifdef.py | 2 +- Tools/scripts/linktree.py | 2 +- Tools/scripts/lll.py | 2 +- Tools/scripts/methfix.py | 2 +- Tools/scripts/mkreal.py | 2 +- Tools/scripts/objgraph.py | 2 +- Tools/scripts/pdeps.py | 2 +- Tools/scripts/pindent.py | 3 +-- Tools/scripts/ptags.py | 2 +- Tools/scripts/pystone.py | 2 +- Tools/scripts/suff.py | 2 +- Tools/scripts/sum5.py | 2 +- Tools/scripts/which.py | 2 +- Tools/scripts/xxci.py | 2 +- 141 files changed, 146 insertions(+), 143 deletions(-) diff --git a/Demo/comparisons/regextest.py b/Demo/comparisons/regextest.py index 35ee9eed77d..97564b79396 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 1de683bafde..d6c213ca755 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 26d9f548db8..f2533b1c0cf 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 588270ed490..ce6e16a2fca 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 e114d7634fe..f91592f1d66 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 ed55e9ff1c6..e29090c12a2 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 ec7f1162ecb..5a0cf7991c5 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 7920c18be80..9129c28158d 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 4f04198bc38..ecb01a29dca 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 794221af10a..583d54e0e7e 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 bf49afcc440..6cc389ea6ff 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 4c01b4c3a8b..9f749aea60e 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 9c643fe51ef..e931751f821 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 af7d9144b0f..9f051ebbf39 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 563c83fe4ca..58efe0e0fb8 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 6a6d2b2c488..6bd62d0249a 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 ecd6965de93..08e0d0cbe5e 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 2009f8c121b..36a35eace21 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 776c095e07b..93c74aa398a 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 4c5376d48b0..2aa2b18bc62 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 200cb4ae8dc..e73e7eccd4b 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 eaf7e41537f..24960466e47 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 3e6a64623f3..477c57bda9f 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 04e7ecb2bf2..cbad3679d16 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 cb018b654c5..2c515c4b703 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 e8f62836762..2db65dcb29c 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 ::, diff --git a/Demo/sgi/al/broadcast.py b/Demo/sgi/al/broadcast.py index ce4875e1fc4..9d88dac5f60 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 a6f6809187c..b9d30d2fa88 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 c9f3111feed..0d537b180f7 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 adc76252d80..68a6a31bbbb 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 b2239929a9e..2aaaa831d0f 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 0caba898261..76e924e309e 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 bfee66e86d8..e27c53865e0 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 39929bef0d9..41c69d60a20 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 2b6c356e1ba..dae99f15834 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 6e3dea6f49a..be56513f37e 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 2055e52e839..6d9e04d19e0 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 ec39de9c8be..b1dfa1b0f17 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 57dea9c865f..9a4c9c1fca7 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 af2039bc22f..c33cb4e9646 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 6561e11b78f..2ad68c997b1 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 da94c6f78a5..7e197f7df95 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 61461f40a6e..697a51a65ee 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 6428fcbce38..4c8fdac1c6e 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 093bcf7ed0b..ec59f22f564 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 59c06a0f694..08614579808 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 0174e9f8d8e..60ef49fabeb 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 6b2602399c2..4870c1b9791 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 c4177dc8423..0d9d29423c7 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 4e4c28ebf4e..0c9687a8c5c 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 79b3ad41d38..176c0e5a0c0 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 9d90a8073dd..b647bd35dfe 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 ca81753ae6b..d65b35f3461 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 f72c6a59206..84aa5a531b3 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 223bbf302b7..4c4786140cf 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 cc0ecfb54a7..a29b1ff04b8 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 be161ccb673..34b3b44aa57 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 9f21f959ffb..3321d23e87c 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 7b1002722c1..a11f95a5e38 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 7070a933422..bbfa6b82385 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 acf0a393df4..c1acf6cc6c2 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 71e307ffa65..b941d0e2c4d 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 f30ab0f1c8e..a2ab3a2f6c4 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 9548301893c..77b2a7a5168 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 f67570bc958..e8cdaa95014 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 3bb36efdc20..e83ce55d680 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 fd946b44ec0..58975bf51d5 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 8839eb80576..8fce547f56a 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 ce62802ebf9..15e3b36b5b2 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 fcd693f65ba..93b6a2d0918 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 9297e46b60b..720b8c3906b 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 7fb45ae4d05..321c2d92b36 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 2750378311c..e67c3f96410 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 f6bbe23688a..29274e67770 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 9f4c86117df..b15b049c43d 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 4328b7b40c1..90f1d22bce8 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 588270ed490..ce6e16a2fca 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 e218e666c72..e3c9db8b281 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 eaf98bea342..519b4280613 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 eca093a1883..1091676a492 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 3d4aeeaa0dd..9a11c2da11e 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 29b0495fd7c..8a3dfce1ba1 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 60be86dcf64..b8c8da37315 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 06b7a882edd..2b985798104 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 500a73d92d4..62ad3e31cfe 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 7296955328a..f3b80081d0e 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 24335cc5490..577af8b8b80 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 338231147b6..9aea7ee5b17 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 f9f1785033f..6e9a8288faf 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 dd808566867..1c54e4b165f 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 34ca4a33384..70aaae3e18c 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 dc30e215ad1..558fd740f3a 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 def5196de8c..eef5220281c 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 59b71c09c78..0b13ce1c0d2 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 2e870c47832..78884c9d365 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 af9b176a519..90de01633dc 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 d14306ab054..3501803e07f 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 eb8b07f4161..e1b1bc5b4be 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 4351004ca45..b916dca1170 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 0ea451f21db..83f6ab9b6a7 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 a9b06983970..a8824facc33 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 cb4313d1376..be66dc89b4c 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 868a7ed4522..097121b233c 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 60b46ed885c..12ca0f3c66c 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 3f1a1c4e1e8..7fab38d8753 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 @@ 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 3d7d2fc7dce..36f58f568c8 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 0b2bb1ba73c..ce4c4baebf3 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 62927a37300..42080cc97b2 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 51e95cb8952..582bd8a7300 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 954e6c9ebfc..c388982dbca 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 fa28aaa087a..f5337756f92 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 84346b49d6a..32f3e79601b 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 f2299b66f26..cc2d075f264 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 eb91ecb5846..7018acac449 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 25681aed7d0..15b16a9e603 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 02ad80d572c..da3ce129215 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 4abdca641c8..bada5a538ab 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 6ef6492a0be..6df0472b283 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 e6760519900..53ea0b88f13 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 599e3370c14..d01643b1811 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 58d0b14542a..4cb9353239e 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 63b5781347f..86b6ee17c41 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 d2fc430b282..06821cd6cbe 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 c1df5f3144a..4c4d5853e29 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 8f121fa8741..774b907e4fd 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 10520f91d5c..78788479092 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 581f92f288a..c34073df5fc 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 9d74be2fec7..ff64425c9a7 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 3239434a0b8..73825c9970d 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 0043645b4ca..d107080e8ec 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 60f2a56cbc8..b0918d61a2a 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 bc4dd1300a1..a065c1759a5 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 c6bbe665a23..4eab79b8832 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 8cf573fee32..fb730f1ed34 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 6432f4cc2d2..1845ed8286f 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 b8fc232d782..f63746eb5d4 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 954e6c9ebfc..c388982dbca 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 491fd3b4820..826e236c3f2 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 fdb83faa139..09bc6863b20 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 07c0d2e7d07..0aff2cd1874 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 9ab5669eb52..d8608a094cd 100755 --- a/Tools/scripts/xxci.py +++ b/Tools/scripts/xxci.py @@ -1,4 +1,4 @@ -#! /usr/local/bin/python +#! /usr/bin/env python # xxci #