Tested YAML files processing. Updated .gitignore file.
This commit is contained in:
parent
d16b8ffa5a
commit
0fa8b49212
7
.gitignore
vendored
7
.gitignore
vendored
@ -1,9 +1,8 @@
|
||||
.idea
|
||||
.venv
|
||||
/data/
|
||||
/configs/config.json
|
||||
/configs/config.yaml
|
||||
/configs/metrics.json
|
||||
/configs/metrics_win.json
|
||||
/configs/config.*
|
||||
/configs/metrics.*
|
||||
/configs/metrics_win.*
|
||||
/__pycache__/
|
||||
/metrics/__pycache__/
|
||||
@ -35,7 +35,7 @@ def read_prop(filepath, sep='=', comment_char='#'):
|
||||
conf[key] = value
|
||||
return conf
|
||||
|
||||
def read_yaml(name): #ToDo: need to be tested!
|
||||
def read_yaml(name):
|
||||
conf = {}
|
||||
with open(name, 'r') as f:
|
||||
y_conf = yaml.safe_load(f)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user