def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()
def _compileddirpats(self):
        pat, matchfunc = _buildregexmatch(
            [("glob", p, "") for p in self._globdirpats], "$"
        )
        return matchfunc