SCons.Subst.NLWrapper

Package SCons :: Module Subst :: Class NLWrapper |
[hide private]
[frames] | no frames]

# Class NLWrapper

source code

A wrapper class that delays turning a list of sources or targets into a NodeList until it's needed. The specified function supplied when the object is initialized is responsible for turning raw nodes into proxies that implement the special attributes like .abspath, .source, etc. This way, we avoid creating those proxies just "in case" someone is going to use $TARGET or the like, and only go through the trouble if we really have to.

In practice, this might be a wash performance-wise, but it's a little cleaner conceptually...

Instance Methods | [hide private]
__init__(self, list, func) | source code
_return_nodelist(self) | source code
_gen_nodelist(self) | source code
_create_nodelist(self) | source code