I did such kind of traversal once: http://pastebin.com/KyEg5ngS
Maybe that was even based on something found in the wiki.

2015-05-20 17:43 GMT+02:00 Gary Oberbrunner <ga...@oberbrunner.com>:

>
> On Wed, May 20, 2015 at 11:25 AM, anatoly techtonik <techto...@gmail.com>
> wrote:
>
>> I want to get target Node based on name passed from command line.
>> How to do that?
>>
>
> node = File(name)
>
> How to get list of all targets to be built?  User guide:
> http://www.scons.org/doc/HTML/scons-user/ch10s03.html#idp3074280
>
> the BUILD_TARGETS variable contains a list of the command-line targets,
> if any were specified, and if no command-line targets were specified, it
> contains a list of the targets specified via the Default method or
> function
>
>
> Note that it contains a list of Nodes, so you don't need to do anything,
> just iterate over it.
>
> --
> Gary
>
> _______________________________________________
> Scons-dev mailing list
> Scons-dev@scons.org
> https://pairlist2.pair.net/mailman/listinfo/scons-dev
>
>
_______________________________________________
Scons-dev mailing list
Scons-dev@scons.org
https://pairlist2.pair.net/mailman/listinfo/scons-dev

Reply via email to