(self, config_path)
| 4 | |
| 5 | class Config(dict): |
| 6 | def __init__(self, config_path): |
| 7 | with open(config_path, 'r') as f: |
| 8 | self._yaml = f.read() |
| 9 | self._dict = yaml.safe_load(self._yaml) |
| 10 | self._dict['PATH'] = os.path.dirname(config_path) |
| 11 | |
| 12 | def __getattr__(self, name): |
| 13 | if self._dict.get(name) is not None: |
nothing calls this directly
no outgoing calls
no test coverage detected