def __init__(self, env):
        self.env = env
        self.root_path = os.path.join(self.env.root_path, 'databags')
        self._known_bags = {}
        self._bags = {}
        try:
            for filename in os.listdir(self.root_path):
                if filename.endswith(('.ini', '.json')):
                    self._known_bags.setdefault(
                        filename.rsplit('.', -1)[0], []).append(filename)
        except __HOLE__:
            pass
dataset/ETHPy150Open lektor/lektor-archive/lektor/databags.py/Databags.__init__