def _inject_or_pass(self, path):
        if 'excludes' in self.config.keys():
            for pattern in self.config['excludes']:
                if re.match(pattern, path):
                    self.app.log.debug(
                        "not doing injections for excluded %s" % path
                        )
                    return False
        return self._inject(path)
        return True
dataset/ETHPy150Open datafolklabs/boss/boss/cli/template.py/TemplateManager._inject_or_pass/original