Re: find str in list of file nodes

daggs <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <trinity-336bbb9c-1081-44d0-9368-2da922f901ff-1594847873061@3c-app-mailcom-bs05>
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" <[email protected]>

To: "SCons users mailing list" <[email protected]>

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 <[email protected] > 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

[email protected]

https://pairlist4.pair.net/mailman/listinfo/scons-users

_______________________________________________ Scons-users mailing list [email protected] https://pairlist4.pair.net/mailman/listinfo/scons-users

_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.