how to run python script from Unix Shell?

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Fri Sep 7 15:47:41 EDT 2001


Fri, 07 Sep 2001 15:43:03 -0000, Donn Cave <donn at drizzle.com> pisze:

> python will in any case be somewhere in PATH, just not so
> reliably in /usr/bin.

Some filesystem hierarchy standards (sorry, I forgot which),
probably specific to Linux, but maybe more general - declare that all
interpreters which are meant to be used through #! should be placed in
/usr/bin or have symlinks there, except some programs placed in /bin
(shells I think).

In particular the default python interpreter should be in /usr/bin,
not just in /usr/local/bin or whatever.

I prefer this convention. Using env doesn't allow to pass an extra
parameter to the interpreter, it's not clear to which interpreters
it should be applied, it fools package dependency finders, and it's
just ugly.

Let's make #!/usr/bin/python work instead of requiring workarounds
from all scripts.

-- 
 __("<  Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTĘPCZA
QRCZAK



More information about the Python-list mailing list