Houdini environment variables in wrapper

   3725   1   1
User Avatar
Member
2 posts
Joined: Sept. 2012
Offline
Hi, everyone! How must look python code that look at directory: /houdini/python/lib/python2.6/site-packages/?

I tryed to write: os.environ= os.path.pathsep.join() and few else variants, but it not help.
User Avatar
Member
2 posts
Joined: Sept. 2012
Offline
7.on
Hi, everyone! How must look python code that look at directory: /houdini/python/lib/python2.6/site-packages/?

I tryed to write: os.environ= os.path.pathsep.join() and few else variants, but it not help.

my 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

#
HB = HFS + ‘/bin’
os.environ=os.path.pathsep.join([HB,os.environ])

#
os.environ= os.path.pathsep.join()

os.environ= os.path.pathsep.join()


os.environ= os.path.pathsep.join()

os.environ= os.path.pathsep.join()

os.environ= os.path.pathsep.join()

os.environ= os.path.pathsep.join()

os.environ= os.path.pathsep.join()
  • Quick Links