Re: Making a shorter shebang

2006-10-14 Thread veracon
Thanks, at least now I know I wasn't doing something wrong. Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, veracon wrote: > > > Actually, it appears to still be using the default binary > > (/usr/bin/python). Can I be sure it's actually reading the .profile > > file? I'm executing throu

Re: Making a shorter shebang

2006-10-14 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, veracon wrote: > Actually, it appears to still be using the default binary > (/usr/bin/python). Can I be sure it's actually reading the .profile > file? I'm executing through regular CGI in Apache. The `~/.profile` is executed when *you* log into your account. CGI scripts

Re: Making a shorter shebang

2006-10-14 Thread veracon
Actually, it appears to still be using the default binary (/usr/bin/python). Can I be sure it's actually reading the .profile file? I'm executing through regular CGI in Apache. veracon wrote: > Thanks a lot! > > Jerry wrote: > > /usr/bin/env just searches your PATH variable to find it, but it does

Re: Making a shorter shebang

2006-10-14 Thread veracon
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

Re: Making a shorter shebang

2006-10-14 Thread Jerry
/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//python2.5:$P

Making a shorter shebang

2006-10-14 Thread veracon
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 a