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 using the following code.
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.