do not hardcode file name

This commit is contained in:
Radovan Bast 2016-03-19 17:46:50 +01:00
parent 5be6e66038
commit 5615da7c78

View File

@ -101,7 +101,7 @@ def parse_yaml(file_name):
construct_mapping)
return yaml.load(stream, OrderedLoader)
with open("autocmake.yml", 'r') as stream:
with open(file_name, 'r') as stream:
try:
config = ordered_load(stream, yaml.SafeLoader)
except yaml.YAMLError as exc: