SubprocessLauncher.getenv

Returns the value of the environment variable variable in the environment of processes launched from this launcher.

On UNIX, the returned string can be an arbitrary byte string. On Windows, it will be UTF-8.

class SubprocessLauncher
string
getenv
(
string variable
)

Parameters

variable string

the environment variable to get

Return Value

Type: string

the value of the environment variable, NULL if unset

Meta

Since

2.40