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

Kevin Dangoor dangoor at gmail.com
Wed Aug 31 20:53:27 CEST 2005


On 8/31/05, Simon Brunning <simon.brunning at gmail.com> wrote:
> On 8/31/05, Craig Amundsen <cdamundsen at gmail.com> wrote:
> > Did you mean #! /usr/local/bin/python
> > or                  #! /usr/local/bin python ?
> 
> I meant the latter - the first version works for me too. Thanks.
> 
> I extrapolated "#! /usr/local/bin python" from the shebang line that
> ran stuff with the OS's version of Python, "#!/usr/bin/env python".
> Clearly, I don't have a clue as yet. ;-)

#!/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. You could
have gotten the equivalent working with your python of choice by doing
this:

#!/usr/bin/env /usr/local/bin/python

Kevin


More information about the Pythonmac-SIG mailing list