I am trying to define houdini env variables in my wrapper and I face an issue with the HOUDINI_SCRIPT_PATH variable.
Here is how I define it in the shell script:
export HOUDINI_SCRIPT_PATH="/Tools/houdini/scripts/;${HOME}/Tools/houdini/scripts/;&"
And when I run the command hcongif -ap I get:
HOUDINI_SCRIPT_PATH := "/Tools/houdini/scripts/;/Users/bebe/Tools/houdini/scripts/;&" The path of directories where Houdini searches for scripts. This includes .cmd files for hscript, .class files for the java command, .tcl and .tk files for the tcl and tk commands, and command scripts for the Alfred Output Driver. Default path: '@/scripts' Where @ is replaced with HOUDINI_PATH Directories searched (in order) are: 1) "/Tools/houdini/scripts" 2) "$HOME/Tools/houdini/scripts" 3) "$HFS/houdini/scripts"
So far so good I think, this looks like what I defined and in the order I defined
I defined my OPMenu.xml like so:
<scriptItem id="create_out_node">
<label>Create Out Node</label>
<scriptPath>${HOUDINI_SCRIPT_PATH}/python/createOutNode.py</scriptPath>
</scriptItem>
Now when I try to run the script from right click menu, I get:
An error occured while executing menu Python script.
Could not open file
/Tools/houdini/scripts/;/Users/bebe/Tools/houdini/scripts/;&/python/createOutNode.py
Details:
Could not open file
/Tools/houdini/scripts/;/Users/bebe/Tools/houdini/scripts/;&/python/createOutNode.py
Instead of looking in each directory, it concatenates the paths together with the file name
Am I wrong somewhere?
I am using Houdini Indie 15.0.306 on OS X 10.10.5 (Yosemite)
Thanks!
