I have a PHP script that call a python script (someone else I can't edit). This work fine on CLI but once I run it as CGI it fails with the error "bzr: ERROR: Couldn't import bzrlib and dependencies."
I guessed it has anything to do with PYTHONPATH so I echo it out and found that it was empty when in apache environment.
I try setting it in my '.htaccess' (I am on Dreamhost so I can't set httpd.conf) as:
SetEnv PYTHONPATH "/home/nawaman/lib/python"
It still does not work.
What can I do about this? Thanks in advance for any help.