Selector¶
-
class
sconstool.util.Selector[source]¶ A replacement for
SCons.Util.Selectorclass.Selectorreturns 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.Selectorwould only select'H', no matter what you do.