launch.substitution module

Module for the Substitution class.

class launch.substitution.Substitution[source]

Bases: object

Encapsulates a substitution to be performed at runtime.

describe() str[source]

Return a description of this substitution as a string.

When inherited from, calling this base class’s default method is not required.

perform(context: LaunchContext) str[source]

Perform the substitution, given the launch context, and return it as a string.

This should be overridden by the derived classes, and the default raises NotImplementedError.

Raises:

NotImplementedError