Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] Python script question




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

Ian



BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org