Making a shorter shebang

veracon veracon at gmail.com
Sat Oct 14 17:54:00 CEST 2006


Thanks a lot!

Jerry wrote:
> /usr/bin/env just searches your PATH variable to find it, but it does
> so in order.  So, if you want it to find your python instead of a
> system provided one, just alter your PATH variable and put
> /home/my_username/python2.5 in front of everything else.
>
> example in .profile:
>
> PATH=/home/<username>/python2.5:$PATH
> export PATH
>
> --
> Jerry
>
> On Oct 14, 10:37 am, "veracon" <vera... at gmail.com> wrote:
> > Long story short, in order to use Python 2.5, I've compiled it in my
> > own account on my hosting. It works fantastic as
> > /home/my_username/python2.5, but the shebang is a bit long. Is there a
> > way to shorten it (environment variables?) or, even better, make
> > /usr/bin/env python point to it?
> > 
> > Thanks in advance!




More information about the Python-list mailing list