Re: /usr/bin/env python

2012-12-16 Thread Lawrence Velázquez
On Dec 16, 2012, at 11:06 PM, Craig Treleaven wrote: > I was just curious why a lot of the Python scripts I've run across use the > env trick. Sounds like it was a workaround as the path to the python > executable was unpredictable on some systems. A couple of possibilities come to mind. (A

Re: /usr/bin/env python

2012-12-16 Thread Craig Treleaven
At 9:41 PM -0600 12/16/12, Ryan Schmidt wrote: On Dec 16, 2012, at 14:49, Craig Treleaven wrote: At 12:10 AM +1100 12/17/12, Joshua Root wrote: On 2012-12-16 19:46 , vincent habchi wrote: Some scripts of a port I'm trying to set up use #!/usr/bin/env python, which seem to always poi

Re: /usr/bin/env python

2012-12-16 Thread Ryan Schmidt
On Dec 16, 2012, at 14:49, Craig Treleaven wrote: > At 12:10 AM +1100 12/17/12, Joshua Root wrote: >> On 2012-12-16 19:46 , vincent habchi wrote: >>> Some scripts of a port I'm trying to set up use #!/usr/bin/env python, >>> which seem to always point to A

Re: /usr/bin/env python

2012-12-16 Thread Joshua Root
On 2012-12-17 07:49 , Craig Treleaven wrote: > At 12:10 AM +1100 12/17/12, Joshua Root wrote: >> On 2012-12-16 19:46 , vincent habchi wrote: >>> Folks, >>> >>> Some scripts of a port I'm trying to set up use #!/usr/bin/env >>> python, w

Re: /usr/bin/env python

2012-12-16 Thread Craig Treleaven
At 12:10 AM +1100 12/17/12, Joshua Root wrote: On 2012-12-16 19:46 , vincent habchi wrote: Folks, Some scripts of a port I'm trying to set up use #!/usr/bin/env python, which seem to always point to Apple's python. Which environment variable have I to change so that 'env

Re: /usr/bin/env python

2012-12-16 Thread Vincent Habchi
Josh, >> Some scripts of a port I’m trying to set up use #!/usr/bin/env python, which >> seem to always point to Apple’s python. Which environment variable have I to >> change so that ‘env’ will return a MacPorts python instead? > The reason /usr/bin/env is used in the sheb

Re: /usr/bin/env python

2012-12-16 Thread Joshua Root
On 2012-12-16 19:46 , vincent habchi wrote: > Folks, > > Some scripts of a port I’m trying to set up use #!/usr/bin/env python, which > seem to always point to Apple’s python. Which environment variable have I to > change so that ‘env’ will return a MacPorts python instea

/usr/bin/env python

2012-12-16 Thread vincent habchi
Folks, Some scripts of a port I’m trying to set up use #!/usr/bin/env python, which seem to always point to Apple’s python. Which environment variable have I to change so that ‘env’ will return a MacPorts python instead? Thanks, Vincent ___ macports