Has Red Hat helped or hurt?

Erik Max Francis max at alcyone.com
Wed May 8 14:40:40 EDT 2002


Grant Edwards wrote:

> I usually install Python 2.x in /usr/local and put
> /usr/local/bin before /usr/bin in my PATH.  Then I do
> 
> #!/usr/bin/env python
> 
> In my scripts.

Note that relying on /usr/bin/env is not always the best solution. 
First, on some weird platforms, env isn't in /usr/bin; and second, env
relies on your PATH, which can be different under varying circumstances
-- for instance, if you relied on env to find a custom installed python
under /usr/local, a cron job running a Python script using env would
find the wrong one, since /usr/local/bin is not in the PATH of a cron
job.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ Who'd ever think it / Such a squalid little ending
\__/ The American and Florence, _Chess_
    Church / http://www.alcyone.com/pyos/church/
 A lambda calculus explorer in Python.



More information about the Python-list mailing list