Jump to content
Logos

Houdini global environment variables in wrapper

Recommended Posts

Hi, everyone! How must look python code that look at directory: /houdini/python/lib/python2.6/site-packages/?

I tryed to write: os.environ['HOUDINI_PYTHON_LIB']= os.path.pathsep.join(['%s/python/lib/'%HOUDINI_GLOB_PATH,'/opt/houdini/12.5.480/python/lib/^']) and few else variants, but it not help.

all wrapper code:

import os,sys,subprocess

HOUDINI_MAJOR_RELEASE = '12'

HOUDINI_MINOR_RELEASE = '5'

HOUDINI_BUILD_VERSION = '480'

#

HOUDINI_INSTALL_PATH='/opt/houdini/'

HOUDINI_GLOB_PATH='/home/logos/mnt/Hranilise/houdini'

HOUDINI_BUILD = '%s.%s.%s'%(

HOUDINI_MAJOR_RELEASE,

HOUDINI_MINOR_RELEASE,

HOUDINI_BUILD_VERSION)

#

HFS = HOUDINI_INSTALL_PATH + HOUDINI_BUILD

os.environ['HFS']=HFS

#

HB = HFS + '/bin'

os.environ['PATH']=os.path.pathsep.join([HB,os.environ['PATH']])

#

os.environ['HOUDINI_TOOLBAR_PATH']= os.path.pathsep.join(['%s/toolbar'%HOUDINI_GLOB_PATH,'@/toolbar'])

os.environ['HOUDINI_SCRIPT_PATH']= os.path.pathsep.join(['%s/scripts'%HOUDINI_GLOB_PATH,'@/scripts'])

os.environ['HOUDINI_OTLSCAN_PATH']= os.path.pathsep.join(['%s/otls/'%HOUDINI_GLOB_PATH,'@/otls/'])

os.environ['HOUDINI_VEX_PATH']= os.path.pathsep.join(['%s/vex/'%HOUDINI_GLOB_PATH,'@/vex/^'])

os.environ['HOUDINI_GALLERY_PATH']= os.path.pathsep.join(['%s/gallery/'%HOUDINI_GLOB_PATH,'@/gallery/'])

os.environ['HOUDINI_DSO_PATH']= os.path.pathsep.join(['%s/dso/'%HOUDINI_GLOB_PATH,'@/dso/'])

os.environ['HOUDINI_PYTHON_LIB']= os.path.pathsep.join(['%s/python/lib/'%HOUDINI_GLOB_PATH,'/opt/houdini/12.5.480/python/lib/^'])

Share this post


Link to post
Share on other sites

Hi,

why would you place your env bubble there?

its meant to be executed prior to houdini

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×