[Scons-users] find str in list of file nodes

Bill Deegan bill at baddogconsulting.com
Wed Jul 15 17:51:37 EDT 2020


That is the SCons'ian way.. :)

On Wed, Jul 15, 2020 at 2:18 PM daggs <daggs at gmx.com> wrote:

> Greetings Bill,
>
> that will do indeed, I just thought there is a more "SCons" way than
> python way.
>
> Thanks,
>
> Dagg.
>
> *Sent:* Wednesday, July 15, 2020 at 11:15 PM
> *From:* "Bill Deegan" <bill at baddogconsulting.com>
> *To:* "SCons users mailing list" <scons-users at scons.org>
> *Subject:* Re: [Scons-users] find str in list of file nodes
> Dagg,
>
> Not entirely sure what you're asking.
> Do you have a list of Node's (in this case File Nodes) and you want to
> find if they're in a file path?)
> nodes_in_path = [n for n in nodes if my_path in str(n)]
> ?
>
> -Bill
>
> On Wed, Jul 15, 2020 at 9:51 AM daggs <daggs at gmx.com> wrote:
>
>> Greetings,
>>
>> I have an input of list of SCons.Node.FS.File and an path str that I want
>> look for it.
>> is there a prper way t convert and str to SCons.Node.FS.File or I need to
>> convert the entire list to strs?
>>
>> Thanks,
>>
>> Dagg.
>> _______________________________________________
>> Scons-users mailing list
>> Scons-users at scons.org
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
> _______________________________________________ Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20200715/91a90db9/attachment.html>


More information about the Scons-users mailing list