8 lines
164 B
Python
8 lines
164 B
Python
import yaml
|
|
|
|
|
|
def read_config(config_path):
|
|
with open(config_path, 'r') as ymlfile:
|
|
cfg = yaml.load(ymlfile, Loader=yaml.FullLoader)
|
|
return cfg
|