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