launch.substitutions.find_executable module

Module for the FindExecutable substitution.

class launch.substitutions.find_executable.FindExecutable[source]

Bases: Substitution

Substitution that tries to locate an executable on the PATH.

Raise:

SubstitutionFailure when executable not found

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

Create a FindExecutable substitution.

describe() str[source]

Return a description of this substitution as a string.

property name: List[Substitution]

Getter for name.

classmethod parse(data: Sequence[str | Path | Substitution | Iterable[str | Path | Substitution]])[source]

Parse FindExecutable substitution.

perform(context: LaunchContext) str[source]

Perform the substitution by locating the executable on the PATH.