Python and Red Hat Linux 6

Nathan Clegg nathan at islanddata.com
Tue Jul 27 15:55:33 EDT 1999


On 26-Jul-99 Brian Pedersen wrote:
> !#/usr/bin/env python 
> 
> instead (don't ask me why, i read it in a FAQ somewhere :-)


You have to give #! an absolute pathname for it to work.  env is
(somewhat) reliably at /usr/bin and is a program used exclusively for
running other programs in certain environments.  In this case, it is used
because it will search your path for python rather than requiring it to be
explicit.


----------------------------------
Nathan Clegg
 nathan at islanddata.com






More information about the Python-list mailing list