actually load the config
yaml.load takes a stream/string/buffer, not a filename. Change-Id: I6d5173e3612290c9dea0e176cdc306cf9f683321
This commit is contained in:
parent
5bec491fbe
commit
fb1c32b129
@ -15,7 +15,8 @@ args = a.parse_args()
|
||||
conf = None
|
||||
|
||||
try:
|
||||
conf = yaml.load(args.config)
|
||||
with open(args.config) as f:
|
||||
conf = yaml.load(f)
|
||||
except IOError as e:
|
||||
print "Couldn't load config file: %s" % e
|
||||
sys.exit(1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user