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 35ee9eed77d0..97564b793967 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 1de683bafde4..d6c213ca755f 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 26d9f548db85..f2533b1c0cfb 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 588270ed490a..ce6e16a2fcac 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 e114d7634fe1..f91592f1d66f 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 ed55e9ff1c65..e29090c12a2a 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 ec7f1162ecb8..5a0cf7991c5b 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 7920c18be802..9129c28158da 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 4f04198bc383..ecb01a29dca9 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 794221af10a6..583d54e0e7e0 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 bf49afcc4402..6cc389ea6ffa 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 4c01b4c3a8b6..9f749aea60ec 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 9c643fe51efa..e931751f8210 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 af7d9144b0f5..9f051ebbf396 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 563c83fe4ca9..58efe0e0fb8a 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 6a6d2b2c4887..6bd62d0249aa 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 ecd6965de930..08e0d0cbe5e1 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 2009f8c121b7..36a35eace215 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 776c095e07b0..93c74aa398a4 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 4c5376d48b04..2aa2b18bc624 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 200cb4ae8dc8..e73e7eccd4bf 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 eaf7e41537fa..24960466e475 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 3e6a64623f3c..477c57bda9f9 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 04e7ecb2bf2e..cbad3679d167 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 cb018b654c5b..2c515c4b703a 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 e8f62836762a..2db65dcb29c4 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 ce4875e1fc44..9d88dac5f600 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 a6f6809187c4..b9d30d2fa88d 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 c9f3111feed4..0d537b180f78 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 adc76252d809..68a6a31bbbbf 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 b2239929a9e2..2aaaa831d0f2 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 0caba8982614..76e924e309e0 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 bfee66e86d8c..e27c53865e03 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 39929bef0d9e..41c69d60a207 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 2b6c356e1bac..dae99f158346 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 6e3dea6f49a4..be56513f37e1 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 2055e52e8395..6d9e04d19e0f 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 ec39de9c8bea..b1dfa1b0f170 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 57dea9c865fa..9a4c9c1fca7f 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 af2039bc22ff..c33cb4e96466 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 6561e11b78f2..2ad68c997b1c 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 da94c6f78a58..7e197f7df955 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 61461f40a6ea..697a51a65ee3 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 6428fcbce381..4c8fdac1c6e8 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 093bcf7ed0b0..ec59f22f5649 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 59c06a0f694f..086145798084 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 0174e9f8d8eb..60ef49fabebf 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 6b2602399c29..4870c1b9791d 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 c4177dc8423d..0d9d29423c76 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 4e4c28ebf4ee..0c9687a8c5c5 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 79b3ad41d384..176c0e5a0c0d 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 9d90a8073ddf..b647bd35dfe2 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 ca81753ae6b8..d65b35f3461c 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 f72c6a59206b..84aa5a531b3e 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 223bbf302b71..4c4786140cfb 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 cc0ecfb54a72..a29b1ff04b8d 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 be161ccb6737..34b3b44aa572 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 9f21f959ffb6..3321d23e87c3 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 7b1002722c16..a11f95a5e381 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 7070a933422f..bbfa6b823851 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 acf0a393df41..c1acf6cc6c29 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 71e307ffa65f..b941d0e2c4d5 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 f30ab0f1c8eb..a2ab3a2f6c49 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 9548301893c0..77b2a7a51682 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 f67570bc9586..e8cdaa950141 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 3bb36efdc203..e83ce55d680f 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 fd946b44ec0f..58975bf51d5a 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 8839eb805769..8fce547f56a5 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 ce62802ebf98..15e3b36b5b28 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 fcd693f65bae..93b6a2d09181 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 9297e46b60b0..720b8c3906bd 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 7fb45ae4d051..321c2d92b36c 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 2750378311c2..e67c3f96410c 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 f6bbe23688a9..29274e67770b 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 9f4c86117df9..b15b049c43df 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 4328b7b40c1a..90f1d22bce81 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 588270ed490a..ce6e16a2fcac 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 e218e666c72d..e3c9db8b281e 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 eaf98bea342a..519b42806131 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 eca093a1883c..1091676a4920 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 3d4aeeaa0dd9..9a11c2da11e1 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 29b0495fd7cc..8a3dfce1ba17 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 60be86dcf64c..b8c8da373155 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 06b7a882eddf..2b9857981045 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 500a73d92d44..62ad3e31cfe4 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 7296955328a4..f3b80081d0eb 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 24335cc54907..577af8b8b805 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 338231147b62..9aea7ee5b176 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 f9f1785033f9..6e9a8288faf8 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 dd808566867e..1c54e4b165f2 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 34ca4a333840..70aaae3e18c5 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 dc30e215ad18..558fd740f3ab 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 def5196de8c1..eef5220281cb 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 59b71c09c784..0b13ce1c0d28 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 2e870c47832c..78884c9d3655 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 af9b176a5192..90de01633dca 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 d14306ab0547..3501803e07f3 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 eb8b07f41612..e1b1bc5b4be8 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 4351004ca45f..b916dca11700 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 0ea451f21db2..83f6ab9b6a7c 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 a9b069839702..a8824facc33f 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 cb4313d13769..be66dc89b4ca 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 868a7ed45225..097121b233cd 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 60b46ed885c5..12ca0f3c66cf 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 3f1a1c4e1e8f..7fab38d87535 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 3d7d2fc7dce5..36f58f568c81 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 0b2bb1ba73c1..ce4c4baebf30 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 62927a373002..42080cc97b2d 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 51e95cb8952d..582bd8a73001 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 954e6c9ebfc1..c388982dbca7 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 fa28aaa087ae..f5337756f929 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 84346b49d6aa..32f3e79601be 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 f2299b66f26a..cc2d075f264f 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 eb91ecb58468..7018acac449f 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 25681aed7d00..15b16a9e6034 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 02ad80d572c1..da3ce1292155 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 4abdca641c8c..bada5a538abb 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 6ef6492a0be4..6df0472b2835 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 e6760519900a..53ea0b88f13c 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 599e3370c145..d01643b1811f 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 58d0b14542a1..4cb9353239e4 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 63b5781347f5..86b6ee17c417 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 d2fc430b282f..06821cd6cbe9 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 c1df5f3144ab..4c4d5853e297 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 8f121fa87415..774b907e4fdd 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 10520f91d5ce..787884790929 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 581f92f288af..c34073df5fc0 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 9d74be2fec72..ff64425c9a77 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 3239434a0b87..73825c9970df 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 0043645b4ca1..d107080e8ece 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 60f2a56cbc83..b0918d61a2ae 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 bc4dd1300a12..a065c1759a51 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 c6bbe665a239..4eab79b8832a 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 8cf573fee322..fb730f1ed345 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 6432f4cc2d21..1845ed8286ff 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 b8fc232d7821..f63746eb5d48 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 954e6c9ebfc1..c388982dbca7 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 491fd3b48205..826e236c3f23 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 fdb83faa139c..09bc6863b203 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 07c0d2e7d071..0aff2cd18746 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 9ab5669eb52d..d8608a094cd7 100755 --- a/Tools/scripts/xxci.py +++ b/Tools/scripts/xxci.py @@ -1,4 +1,4 @@ -#! /usr/local/bin/python +#! /usr/bin/env python # xxci # -- 2.47.3