[Scons-users] Glob
Russel Winder
russel at winder.org.uk
Sat Mar 8 14:23:28 EST 2014
On Sat, 2014-03-08 at 19:07 +0000, Andrew Featherstone wrote:
> […]
> I've used an idiom similar to the following:
> file_names = map(str, Glob('*.cc'))
> file_names.remove('specialSourceFile.cc')
This works for me in that it avoid the hassles with glob.glob, and
works. However I think what this means is that the SCons.Node.FS types
are sadly lacking in functionality. I took a quick look at the
SCons.Node.FS module and I am sadly lacking in any comprehension of it.
> If you wanted to then end up with a list of file nodes then
> File(file_names)
Excellent point, thanks. I got caught up in trying to ensure things were
as similar as possible.
> I don't think any information is lost in this process; it's not caused
> problems for me. I'd agree you'd expect to be able to do something
> similar to your above example, although to be a bit tidier I'd might use
> File('specialSourceFiles.cc'), for the case where you are wanting to
> remove a single file.
I guess an issue has to result from this…
--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder at ekiga.net
41 Buckmaster Road m: +44 7770 465 077 xmpp: russel at winder.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
Url : http://four.pairlist.net/pipermail/scons-users/attachments/20140308/93acb17a/attachment.pgp
More information about the Scons-users
mailing list