def _yaml_include(self, loader, node):
        """
        Include another yaml file from main file
        This is usually done by registering !include tag
        """
        filepath = node.value
        if not os.path.exists(filepath):
            for dir in self.conf_dirs:
                filepath = os.path.join(dir, node.value)
                if os.path.exists(filepath):
                    break

        self.conf_dirs.append(os.path.dirname(filepath))
        try:
            with open(filepath, 'r') as inputfile:
                return yaml.load(inputfile)
        except __HOLE__ as e:
            lg.error("Can't include config file %s: %s" % (filepath, e))
            raise
dataset/ETHPy150Open gooddata/smoker/smoker/server/daemon.py/Smokerd._yaml_include