#!/usr/bin/env python vs. #!/usr/bin/python

Ben Finney bignose+hates-spam at benfinney.id.au
Fri May 2 01:50:22 EDT 2008


"D'Arcy J.M. Cain" <darcy at druid.net> writes:

> On Fri, 02 May 2008 13:24:01 +1000
> Ben Finney <bignose+hates-spam at benfinney.id.au> wrote:
> > I much prefer "#! /usr/bin/python" because I want my Python
> > programs to, by default, be run with the default Python, and
> > depend on Python being installed by the operating system's package
> > manager. On systems that use shebang lines and that actually have
> > standardised filesystem locations, the default Python is found at
> > '/usr/bin/python'.
> 
> You have lived a sheltered life.  Not every packaging system puts the
> executible in /usr/bin.  Many systems use /usr/local/bin.

They use that for the operating-system-installed default Python
interpreter? Colour me incredulous.

-- 
 \           “[The RIAA] have the patience to keep stomping. They’re |
  `\        playing whack-a-mole with an infinite supply of tokens.” |
_o__)                                  —kennon, http://kuro5hin.org/ |
Ben Finney



More information about the Python-list mailing list