[Scons-users] Selecting a decider for a node

Tom Tanner (BLOOMBERG/ LONDON) ttanner2 at bloomberg.net
Wed Aug 21 10:26:26 EDT 2013




> each Node has an ".attributes" field, which is of type

>

> class Attrs(object):

> pass

>

> . It can be used to append arbitrary information to the node, e.g.

>

> t = d.File(c + class_suffix)

> t.attributes.java_classdir = classdir



> as taken from ll. 107 of the javac.py Tool.



> Another option would be to subclass FS.File, overwrite the decider and

> then explicitly create nodes of this new type where needed.



> Best regards,



> Dirk


That first method does exactly what I need. Many thanks

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 4294058533678002.txt
Type: application/octet-stream
Size: 149 bytes
Desc: not available
Url : http://four.pairlist.net/pipermail/scons-users/attachments/20130821/07e6f17f/attachment.obj


More information about the Scons-users mailing list