[Pythonmac-SIG] Python 2.4.1 not replacing earlier versions.

Robert Kern rkern at ucsd.edu
Wed Aug 31 21:18:39 CEST 2005


Kevin Dangoor wrote:

> #!/usr/bin/env python
> 
> is actually saying to invoke the "env" command (you can type 'man env'
> to see what that command's all about). This particular usage of env
> does not actually do anything of value, as far as I can see.

It selects the first executable named "python" in the PATH. The shebang
line requires an explicit executable. For example,

  #!python

does not work.

-- 
Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
  -- Richard Harter


More information about the Pythonmac-SIG mailing list