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

Class NullCmdGenerator

source code

object --+
         |
        NullCmdGenerator

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)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__call__(self, target, source, env, for_signature=None) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, cmd)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)