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

Bill Deegan bill at baddogconsulting.com
Wed Jul 15 16:15:15 EDT 2020


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20200715/4ae768bb/attachment.html>


More information about the Scons-users mailing list