Previous Thread  Next Thread

chat icon Python 'import os' woes solved under RH7.3 and blender 2.25

millirad

Posted: Mon Apr 21, 2003 3:05 am
Joined: 10 Feb 2003
Posts: 11
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
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group