Bashrc problem


#1

I’m trying to get my cgi python scripts to run under a python 2.6 install i have in ~/packages/. I’ve setup my .bashrc to be

~/.bashrc: executed by bash(1) for non-login shells.

export PATH="~/packages/bin:$PATH"

Everything is working fine for login shells, but scripts running via the web still have PATH as just
/usr/local/bin:/usr/bin:/bin
So /usr/bin/python is used instead of ~/packages/usr/bin/python

Am I just overlooking something simple here?


#2

I’ve found defaults paths are always used when calling shell from web.

Set your full paths in a preloader (that then calls your script).

web -> preloader -> script.py

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost