Variations on a theme by "pound bang"

Barry A. Warsaw bwarsaw at cnri.reston.va.us
Mon Jun 14 11:01:50 EDT 1999


>>>>> "JL" == James Logajan <JamesL at Lugoj.Com> writes:

    JL> Alas, this is a myth. Not all Unixen put env in /usr/bin, some
    JL> put it in /bin. I can't recall if it was Solaris (probably
    JL> not) or LynxOS (probably) that put env in /bin.

Solaris puts env in both /bin and /usr/bin.  You're right though
/usr/bin/env isn't 100% portable but it's by far the best shot you've
got.

FWIW, in Mailman we hardcode the paths to python based on the one we
find in your $PATH at config/install time.  Very important for CGI
based apps as many people have pointed out, and it's a workable, if
involved, solution if you've got an install step.  For most Python
apps I think it's not worth it, and /usr/bin/env is your best bet.

-Barry




More information about the Python-list mailing list