SubprocessLauncher.setenv

void setenv(string variable, string value, bool overwrite)

Sets the environment variable variable in the environment of processes launched from this launcher.

On UNIX, both the variable's name and value can be arbitrary byte strings, except that the variable's name cannot contain '='. On Windows, they should be in UTF-8.

Parameters

variablethe environment variable to set, must not contain '='
valuethe new value for the variable
overwritewhether to change the variable if it already exists