Fix format check ... again
This commit is contained in:
parent
c4a1ff86c9
commit
ff01e33929
|
@ -215,9 +215,9 @@ def run_cli():
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
with open(options.config, "r") as c:
|
with open(options.config, "r") as c:
|
||||||
if options.config[-5:0] == '.json':
|
if options.config[-5:] == '.json':
|
||||||
conf = json.load(c)
|
conf = json.load(c)
|
||||||
elif options.config[-4:0] == '.yml':
|
elif options.config[-4:] == '.yml':
|
||||||
from yaml import load as yaml_load
|
from yaml import load as yaml_load
|
||||||
conf = yaml_load(c)
|
conf = yaml_load(c)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue