SCons :: Defaults :: NullCmdGenerator :: Class NullCmdGenerator
[hide private]
[frames] | no frames]

Class NullCmdGenerator

source code

This is a callable class that can be used in place of other command generators if you don't want them to do anything.

The __call__ method for this class simply returns the thing you instantiated it with.

Example usage: env["DO_NOTHING"] = NullCmdGenerator env["LINKCOM"] = "${DO_NOTHING('$LINK $SOURCES $TARGET')}"

Instance Methods [hide private]
__init__(self, cmd) source code
__call__(self, target, source, env, for_signature=None) source code