launch.actions.reset_environment module

Module for the ResetEnvironment action.

class launch.actions.reset_environment.ResetEnvironment[source]

Bases: Action

Action that resets the environment in the current context.

Clears any changes made by previous actions to the context environment. The environment is reset to the state it was in when the context was created, i.e. the contents of os.environ.

__init__(**kwargs) None[source]

Create a ResetEnvironment action.

execute(context: LaunchContext)[source]

Execute the action.

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

Return ResetEnvironment action and kwargs for constructing it.