launch.actions.set_environment_variable module
Module for the SetEnvironmentVariable action.
- class launch.actions.set_environment_variable.SetEnvironmentVariable[source]
Bases:
ActionAction that sets an environment variable.
- __init__(name: str | Path | Substitution | Iterable[str | Path | Substitution], value: str | Path | Substitution | Iterable[str | Path | Substitution], **kwargs: Any) 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.
- classmethod parse(entity: Entity, parser: Parser) Tuple[Type[SetEnvironmentVariable], Dict[str, Any]][source]
Parse a ‘set_env’ entity.
- property value: List[Substitution]
Getter for the value of the environment variable to be set.