launch.actions.unset_environment_variable module

Module for the UnsetEnvironmentVariable action.

class launch.actions.unset_environment_variable.UnsetEnvironmentVariable[source]

Bases: Action

Action that unsets an environment variable if it is set, otherwise does nothing.

__init__(name: str | Substitution | Iterable[str | Substitution], **kwargs) None[source]

Create an UnsetEnvironmentVariable action.

execute(context: LaunchContext) None[source]

Execute the action.

property name: List[Substitution]

Getter for the name of the environment variable to be unset.

classmethod parse(entity: Entity, parser: Parser)[source]

Parse a ‘set_env’ entity.