projects
/
osm
/
openvim.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'v2.0'
[osm/openvim.git]
/
test
/
lib
/
config_parser.py
1
import
yaml
2
3
4
def
get_config
(
file
):
5
"""
6
Parse test config file
7
:param file:
8
:return:
9
"""
10
with
open
(
file
,
'r'
)
as
stream
:
11
try
:
12
return
yaml
.
load
(
stream
)
13
except
yaml
.
YAMLError
as
exc
:
14
print
(
exc
)
15