avoiding long paths to interpreter

holger krekel pyth at devel.trillke.net
Sat Jan 11 01:51:51 CET 2003


Erik Max Francis wrote:
> holger krekel wrote:
> 
> > the Shell script is free to look for the right python version (e.g.
> > python2.1 minimum, python2.2 preferred, python2.3 possible).
> 
> Sure.  It can also write home to Mom, but the shell script you posted
> didn't do any of that.

which i stated explicitly.  It was just a conceptual (but tested) 
idea of an invocation of python code without 

a) relying on 'env' and

b) possibly providing more flexibility.  

As i regulary forget all the neccessary shell syntax and idioms 
i didn't bother to spell it out.  But why shouldn't it be
possible to scan $PATH and select a python version of choice? 
Do you have any reason to believe this cannot be done in
shell-land?  That was the one part i omitted.

    holger





More information about the Python-list mailing list