[Scons-users] Pass custom arguments to a builder
delbert dev
delbertum at gmail.com
Sun Jan 19 19:32:53 EST 2014
I have this builder which uses global variables:
*def my_action(source, target, env):*
* with zipfile.ZipFile(gtestOutputFile , "r") as z: *
* z.extractall(outdir)*
* print "Extracted : " + source[0].abspath + " too: " +
target[1].abspath*
* print "a " + target[0].abspath*
* print "a " + target[1].abspath*
* print "a " + target[2].abspath*
* print "s " + source[0].abspath*
* print "o " + outdir*
*my_cmd_builder = Builder(action=my_action)*
*env.Append( BUILDERS = {'MyCmd' : my_cmd_builder } )*
*my_cmd = env.MyCmd(["asdad", "asdasdads123123", "eee"], os.popen('which
bash').read().strip())*
I would like to reuse the above builder and therefore it should take the
input/output files as arguments. But how do I do that? I have tried to pass
them as target, source lists but it does not work.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20140120/c6eb1e3d/attachment.htm
More information about the Scons-users
mailing list