Houdini 20.5 hapi

hapi.setServerEnvString function

Set environment variable for the server process as a string.

Note that this may affect other sessions on the same server process. The session parameter is mainly there to identify the server process, not the specific session.

For in-process sessions, this will affect the current process’s environment.

Usage

setServerEnvString(session: hapi.Session, variable_name: str, value: str) → bool

Set environment variable for the server process as a string.

session

The session of Houdini you are interacting with. See hapi.Session for more on sessions. Pass None to just use the default in-process session.

variable_name

Name of the environmnet variable.

value

The string value.

hapi