launch.substitutions.file_content module
Module for the FileContent substitution.
- class launch.substitutions.file_content.FileContent[source]
Bases:
Substitution
Substitution that reads the contents of a file.
If the file is not found a SubstitutionFailure error is raised.
- __init__(path: str | Substitution | Iterable[str | Substitution]) None [source]
Create a FileContent substitution.
- classmethod parse(data: Sequence[str | Substitution | Iterable[str | Substitution]])[source]
Parse FileContent substitution.
- property path: List[Substitution]
Getter for path.
- perform(context: LaunchContext) str [source]
Perform the substitution by evaluating the expression.