ReplacingCaller¶
-
class
sconstool.util.ReplacingCaller(wrapped, replacements={}, **kw)[source]¶ Base class for
ReplacingBuilder,ReplacingActionand other similar wrappers.Parameters: - wrapped – callable object, initializes
wrapped, - replacements (dict) – initializes
replacements, - kw – keyword arguments used to initialize
replacements.
-
__call__(env, *args, **kw)[source]¶ Invokes
wrappedwith args and replaced variables in env and kw.Parameters:
-
replacements= None¶ An instance of
Replacementsused to replace variables.
-
sort_call_args(*args)[source]¶ May be be overwritten in a subclass to reorganize positional arguments passed to
wrapped.
-
wrapped= None¶ Wrapped callable that will be invoked with replaced variables.
- wrapped – callable object, initializes