File size: 241 Bytes
5dec17e
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
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)