start windows
This commit is contained in:
11
utils/YamlReader.py
Normal file
11
utils/YamlReader.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import yaml
|
||||
|
||||
class YamlReader:
|
||||
def __init__(self, yaml_file):
|
||||
self.data = self._load_yaml(yaml_file)
|
||||
|
||||
def _load_yaml(self, yaml_file : str):
|
||||
with open(yaml_file, 'r') as stream:
|
||||
data_loaded = yaml.safe_load(stream)
|
||||
|
||||
return data_loaded
|
||||
Reference in New Issue
Block a user