Spaces:
Running
Running
import yaml | |
class Config: | |
def __init__(self, config_path: str): | |
with open(config_path, 'r') as f: | |
self.config = yaml.safe_load(f) | |
def __getattr__(self, name): | |
return self.config.get(name) |