BT.set_env

BT.set_env

BT.set_env

Function

writes to the BT runtime environment variable overlay.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
nameStringYesNoneEnvironment variable name.
valueAnyNo''Environment variable value, converted to string before writing.

Return Value

TypeDescription
String/EmptyReturns the valid value before writing; returns empty if it does not exist originally.

Examples

Notes

  • BT.set_env() only modifies the BT runtime overlay and does not call the system global environment variable writing.
  • When the variable with the same name originally has a deletion mark, set_env will overwrite the deletion mark.