prevent call get_default_config_file if args.config exists

This commit is contained in:
Jorge Niedbalski R 2013-06-22 06:48:01 -07:00
parent cf6e765323
commit c218792fa4

View File

@ -83,12 +83,12 @@ class Application(object):
for k, v in cfg.items():
self.cfg.set(k.lower(), v)
default_config = get_default_config_file()
if args.config:
self.load_config_from_file(args.config)
elif default_config is not None:
self.load_config_from_file(default_config)
else:
default_config = get_default_config_file()
if default_config is not None:
self.load_config_from_file(default_config)
# Lastly, update the configuration with any command line
# settings.