HOUDINI_USER_PREF_DIR change not respected upon startup

   1331   0   0
User Avatar
Member
83 posts
Joined: April 2014
Offline
We are working in a Linux environment, and used to have our HOUDINI_USER_PREF_DIR located on in our /home/DOMAIN/USER/ folder on a per machine level. We just changed it so that each user has it now has it in their user folder on the network, where as before it was on that specific machine. This was done by changing the HOUDINI_USER_PREF_DIR in the 123.py script on startup.

prefsPath = '/mnt/warehouse6/cask1/users/%s/%s%s' % ("USER", hou.applicationName(), ".".join(hou.applicationVersionString().split(".")[:-1]))
hou.putenv("HOUDINI_USER_PREF_DIR", prefsPath)

This somewhat works, we get a new user folder for each version on our network, located at /mnt/warehouse6/cask1/users/USER/, and it seems to use what is put in there. $HOUDINI_USER_PREF_DIR also returns the correct folder if you print it inside Houdini.

However, the older default /home/DOMAIN/USER/ prefs folder is still being created and used when Houdini starts up, even though I am changing the prefs directory in the startup script.
Is there something else that I need to change? I would think altering it in the 123.py would disregard the older default location that Houdini sets up.
Edited by Tyler Britton2 - Feb. 4, 2020 11:42:22
  • Quick Links