[Scons-users] Glob and **

Mats Wichmann mats at wichmann.us
Sat Jun 6 09:05:09 EDT 2020


On 6/6/20 4:22 AM, Russel Winder wrote:
> Hi,
> 
> Glob('**/*.d') works as it says on the can. However what I want is the set of
> .d files in the source sub-tree. So Glob('source/*.d') is not up to the task
> and Glob('source/**/*.d') doesn't work. Am I missing something simple?

What does it say on the can? If you mean Python's recursive globbing
with ** from glob.glob, the SCons Glob was adapted from glob.glob long
before that existed (Py docs say that syntax was introduced in 3.5) and
it doesn't appear to have any support for it. Might not be a bad feature
request?

Or did you mean something else?


More information about the Scons-users mailing list