

def __getattr__(self, key):
    for p in self.config_paths:
        fname = (key + '.cfg')
        return_path = path.join(p, fname)
        if path.exists(return_path):
            return return_path
    return None

dataset/ETHPy150Open charlesthomas/magpie/magpie/config/__init__.py ConfigPath.__getattr__/original