launch.actions.replace_environment_variables module
Module for the ReplaceEnvironmentVariables action.
- class launch.actions.replace_environment_variables.ReplaceEnvironmentVariables[source]
Bases:
ActionAction that replaces the environment variables in the current context.
The previous state can be saved by pushing the stack with the
launch.actions.PushEnvironmentaction. And can be restored by popping the stack with thelaunch.actions.PopEnvironmentaction.- __init__(environment: Mapping[str, str] = {}, **kwargs) None[source]
Create a ReplaceEnvironmentVariables action.
- property environment
Getter for environment.
- execute(context: LaunchContext)[source]
Execute the action.