Robbert
it does not seem to work if I try to compare with any self-set environment variables inside of the package file
Self-set environment variables work well for setting a value, like :
{
"env": [
{
"MY_BROWSER_PATH" : "C:/Program Files/Google/Chrome/Application/chrome.exe"
},
{
"HOUDINI_EXTERNAL_HELP_BROWSER" : "$MY_BROWSER_PATH"
}
]
}
But they don't work for package expressions when set within the same package file, and have to be set prior to scanning this package file. You have to set
SOME_VAR
in a previously loaded package file or in system environment variables before starting Houdini (and called with $
prefix, without single quotes ''
) :{
"env": [
{
"MY_BROWSER_PATH" : "C:/Program Files/Google/Chrome/Application/chrome.exe"
},
{
"HOUDINI_EXTERNAL_HELP_BROWSER" :
{
"houdini_version == $SOME_VAR " :"$MY_BROWSER_PATH"
}
}
]
}
alexwheezy
I think this is because a number is expected, not a string.
The expression syntaxe actually expects string values.