[Scons-users] Tech question

nileiqi at optusnet.com.au nileiqi at optusnet.com.au
Thu Jan 24 17:14:41 EST 2013




Hi,

I am new to Scons and Python, and currently spend quite amount time to
learn other people's code and Scons user guide. Please allow me ask
some general  and tech quesitons.

Tech question
(1) Whta is the main difference between generator and action ? For
example, I have two pieces of code

****************** piece 1****************************
bld=Builder(action = Action(function_name))
env.Append(Builders= { 'foo':bld})
*********************************************************
****************** piece 2****************************
 bld=Builder(generator = function_name)
env.Append(Builders= { 'foo':bld})
 **********************************************************
when run them, what is the different ?

(2) For above piece 1 code, I realize it never execute until at the
end of the code, when function Default() is called, why is that ?

thanks very much in advance.

Kind regards

Daniel

-------------------------
Email sent using Optus Webmail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20130125/3a423d92/attachment.htm>


More information about the Scons-users mailing list