#!/usr/bin/env python -u

Martin Preishuber Martin.Preishuber at stuco.uni-klu.ac.at
Fri Apr 16 11:21:24 EDT 1999


Hi all,

I'm thinking about a way how to generalize the python start from a
script.
Usually I took something like

#!/usr/local/bin/python -u

(I need the -u for unbuffered output) but when creating RPM files the
final
rpms needs /usr/local/bin/python.

So I thought about using

#!/usr/bin/env python -u

This doesn't work because the Linux kernel takes "python -u" as one
argument for env so it doesn't find the command (a couple of friends
checked the kernel source which says exactly this).

So does anybody know some general way to start python without using
some fixed path plus having the -u included ?

Thanks,

Martin

-- 
Martin Preishuber - Student, ECLiPt Core Member, SysAdmin
http://eclipt.uni-klu.ac.at,
mailto:Martin.Preishuber at stuco.uni-klu.ac.at

A man paints with his brains and not with his hands.




More information about the Python-list mailing list