[Discuss] Python script question

Jerry Feldman gaf at blu.org
Wed Aug 3 14:58:11 EDT 2011


On 08/03/2011 12:05 PM, Ian Stokes-Rees wrote:
>
> On Wed Aug  3 10:44:43 2011, Dan Ritter wrote:
>> On Wed, Aug 03, 2011 at 10:28:20AM -0400, Jerry Feldman wrote:
>>> A coworker of mine has a Python script set up as:
>>> #! $PATH_TO_PYTHON/python
> Another option is to simply have the version of python you want to be 
> at the head of the system path at execution time, then you can do:
>
> #!/usr/bin/env python
>
Certainly. But, that will tend to break since I think they source some
system scripts first.

-- 
Jerry Feldman <gaf at blu.org>
Boston Linux and Unix
PGP key id: 537C5846
PGP Key fingerprint: 3D1B 8377 A3C0 A5F2 ECBB  CA3B 4607 4319 537C 5846




More information about the Discuss mailing list