Running .bat with existing houdini.env

   3460   2   3
User Avatar
Member
252 posts
Joined:
Offline
I have an existing houdini.envfile located at the documents/houdiniX.XXfolder in windows.

Inside it, I have a line like this:
HOUDINI_PATH = "X:\tools\tools_A;&;"
It works great whenever I run the default houdini.

But whenever I'm using a .batfile to run a custom houdini session, with a line like this:
set HOUDINI_PATH=Y:\tools\tools_B;^&;
The path from the .batfile is not getting appended.
Only tools_A gets loaded.

Now if i comment out tools_A in the houdini.envfile..
tools_B does gets loaded from the .batfile.

How do I make it so that both tools_A and tools_B gets loaded?
User Avatar
Member
2 posts
Joined: March 2014
Offline
In houdini.env add your actual HOUDINI_PATH:
HOUDINI_PATH = "X:\tools\tools_A;$HOUDINI_PATH;&"

In .bat leave only your tools path:
set "HOUDINI_PATH=Y:\tools\tools_B"
User Avatar
Member
252 posts
Joined:
Offline
Hi Ilya! Thank you for responding to this. I already forgot that I posted this a year ago

I guess to avoid confusion (and by following your answer), I should also rename the HOUDINI_PATHto something like MY_HTOOLS.

houdini.envupdate:
HOUDINI_PATH = "X:\tools\tools_A;$MY_HTOOLS;&"

.batfile:
set MY_HTOOLS=Y:\tools\tools_B


(I haven't tested this yet though! I don't have (and can't remember) the batch file anymore >__<)
  • Quick Links