def _expandwildcards(makefile, tlist): for t in tlist: if not hasglob(t): yield t else: l = glob(makefile.workdir, t) for r in l: yield r
def resolve(self, makefile, variables, fd, setting): patterns = self._arguments[0].resolvesplit(makefile, variables, setting) fd.write(' '.join([ x.replace('\\', '/') for p in patterns for x in glob(makefile.workdir, p) ]))