[Sidefx-houdini-list] Python scripts and HOUDINI_PATH

Rangi Sutton rangi at kanuka.com.au
Tue Jul 10 18:53:04 EDT 2012

Hi Graham,

Ah.. great. Thanks works. So I had two errors in that path. Glad I asked.

Will add import hou to 456.py as you suggested.


(cc'ing support at sidefx.com... no need to open ticket or reply now.
sorry for spam. Except maybe RFE on docs improvement on this!)

On 11 July 2012 08:45, Graham Thompson <captainhammy at gmail.com> wrote:
> The Python python2.Xlibs folders need to live in the houdini/ folder,
> not houdini/scripts, just like in $HFS/houdini/python2.6libs/.  You
> can also put Python files in houdini/scripts/python directories and
> they will work for 2.5 and 2.6.
> With regards to your other problem, you need to "import hou" in your
> 456.py file.
> On Tue, Jul 10, 2012 at 3:22 PM, Rangi Sutton <rangi at kanuka.com.au> wrote:
>> Hi folks,
>> Using H12.0.634 on linux, python 2.7.3.
>> Trying to get modules to be found using HOUDINI_PATH, and attempting
>> to avoid setting HOUDINI_SCRIPT_PATH as well.
>> From what I have read the modules belong somewhere  in HOUDINI_PATH
>> under scripts/python2.6lib
>> Launching hython from that directory I can find my foo.py module. It
>> gives me that hou not defined error, which is weird as it can find hou
>> when I subsequently type in interactively. But that's a maybe
>> unrelated thing.

More information about the Sidefx-houdini-list mailing list