I was having trouble getting blenderpublisher to use the PYTHONPATH
under redhat 7.3.
What I wanted was the ability to run other programs and open pipes
using python 2.2 so I can write applications that drive blender using C++.
I wrote a bash script that sets the PYTHONPATH environment variable and
then runs up blenderpublisher.
Blender can now use all the functionality of the external python system.
hope this helps people a bit.
here's the script:
#!/bin/sh
PYTHONPATH=/usr/local/lib/python2.2:/usr/local/lib/python2.2/plat-linux2:/usr/local/lib/python2.2/lib-tk:/usr/local/lib/python2.2/lib-dynload:/usr/local/lib/python2.2/site-packages
export PYTHONPATH
/usr/lib/blender/blenderpublisher