launch.actions.set_environment_variable module
Module for the SetEnvironmentVariable action.
- class launch.actions.set_environment_variable.SetEnvironmentVariable[source]
Bases:
Action
Action that sets an environment variable.
- __init__(name: str | Substitution | Iterable[str | Substitution], value: str | Substitution | Iterable[str | Substitution], **kwargs) None [source]
Create a SetEnvironmentVariable action.
- execute(context: LaunchContext) None [source]
Execute the action.
- property name: List[Substitution]
Getter for the name of the environment variable to be set.
- property value: List[Substitution]
Getter for the value of the environment variable to be set.