launch.substitutions.launch_configuration module
Module for the LaunchConfiguration substitution.
- class launch.substitutions.launch_configuration.LaunchConfiguration[source]
Bases:
SubstitutionSubstitution that can access launch configuration variables.
- __init__(variable_name: str | Path | Substitution | Iterable[str | Path | Substitution], *, default: Any | Iterable[Any] | None = None) None[source]
Create a LaunchConfiguration substitution.
- classmethod parse(data: Sequence[str | Path | Substitution | Iterable[str | Path | Substitution]])[source]
Parse FindExecutable substitution.
- perform(context: LaunchContext) str[source]
Perform the substitution by retrieving the launch configuration, as a string.
If the launch configuration is not found and a default has been set, the default will be returned, as a string.
- property variable_name: List[Substitution]
Getter for variable_name.