Re: linux: PYTHONPATH env var and XSI

Date : Wed, 12 Apr 2006 10:20:02 -0700
To : XSI(at)Softimage.COM
From : Andy Buecker <abuecker(at)ilm.com>
Subject : Re: linux: PYTHONPATH env var and XSI
You can adjust the resource file '$XSI_ROOT/.xsi_X.X'. They are setting a new PYTHONPATH envar there. I've set it to append the existing path after the xsi python path, that way any xsi specific modules will have priority:

setenv PYTHONPATH   "${XSI_BINDIR}:${PYTHONPATH}"


-A



Greg Smith wrote:
Okay got a linux question regarding python and XSI, more particularly using the enviroment variable PYTHONPATH. Now I am aware that XSI ships with Python 2.3 and a version of pywin32. Which pretty much makes it independent from the install on Linux itself. However for some reason, python library in XSI does not look at the PYTHONPATH environment variable. Is there a reason for this? I figured out how to get around this by executing the following script in the script editor, but personally I think its a band-aid solution and not a proper resolve:
import sys
sys.path.ammend('python path variable')
I am curious if there is something that I need to set first in order for it to work. And on another note, what if I wanted to use a more recent build of Python instead of the one included with XSI? am I SOL? Greg
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.