File size: 234 Bytes
7405e85
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from typing import Optional

from omegaconf import DictConfig

cfg: Optional[DictConfig] = None


def get_cfg() -> DictConfig:
    global cfg
    return cfg


def set_cfg(new_cfg: DictConfig) -> None:
    global cfg
    cfg = new_cfg