actually load the config

yaml.load takes a stream/string/buffer, not a filename.

Change-Id: I6d5173e3612290c9dea0e176cdc306cf9f683321
This commit is contained in:
Chris Forbes 2014-04-03 17:16:17 +13:00
parent 5bec491fbe
commit fb1c32b129

View File

@ -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)