Houdini 20.0 hapi

hapi.setServerEnvInt function

Set environment variable for the server process as an integer.

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

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

Set environment variable for the server process as an integer.

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 environment variable.

value

The integer value.

hapi