Selector¶
-
class
sconstool.util.
Selector
[source]¶ A replacement for
SCons.Util.Selector
class.Selector
returns a dictionary value for the longest matched source suffix found in the dictionary.To have an example, for the following selector
sel = Selector({'.h': 'H', '.t.h': 'TH'})
all the assertions below hold
assert sel(env, ['foo.h']) == 'H' assert sel(env, ['foo.t.h']) == 'TH'
The original
SCons.Util.Selector
would only select'H'
, no matter what you do.