launch.actions.replace_environment_variables module

Module for the ReplaceEnvironmentVariables action.

class launch.actions.replace_environment_variables.ReplaceEnvironmentVariables[source]

Bases: Action

Action that replaces the environment variables in the current context.

The previous state can be saved by pushing the stack with the launch.actions.PushEnvironment action. And can be restored by popping the stack with the launch.actions.PopEnvironment action.

__init__(environment: Mapping[str, str] = {}, **kwargs) None[source]

Create a ReplaceEnvironmentVariables action.

property environment

Getter for environment.

execute(context: LaunchContext)[source]

Execute the action.

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

Return the ReplaceEnvironmentVariables action and kwargs for constructing it.