File size: 387 Bytes
4589b64
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import yaml

class Config():
    def __init__(self, dir) -> None:
        """Init function for Config class

        Args:
            dir (String): path to config file
        """
        self.dir = dir
    
    def __get_config__(self):
        """get config

        Returns:
            yaml: Yaml config
        """
        return yaml.load((open(self.dir)), Loader=yaml.SafeLoader)