Make --config path absolute

This commit is contained in:
Thomas Scholtes 2014-01-30 00:11:19 +01:00
parent d75f6667e1
commit df51aa2d1a

View file

@ -690,6 +690,7 @@ class Configuration(RootView):
def add_file(self, filename):
"""Parses the file as YAML and adds it to the configuration sources
"""
filename = os.path.abspath(filename)
self.add(ConfigSource(load_yaml(filename), filename))
class LazyConfig(Configuration):