def load_config():
<EOL>config = flatten(default_config.DEFAULT_CONFIG)<EOL>cli_config = flatten(parse_args())<EOL>if "<STR_LIT>" in cli_config:<EOL><INDENT>logging.info("<STR_LIT>".format(cli_config['<STR_LIT>']))<EOL>configfile = parse_configfile(cli_config['<STR_LIT>'])<EOL>config = overwrite_config(config, configfile)<EOL><DEDENT>config = overwrite_config(config, cli_config)<EOL>if '<STR_LIT>' in config:<EOL><INDENT>if config['<STR_LIT>'] == <NUM_LIT:1>:<EOL><INDENT>logging.getLogger().setLevel(logging.INFO)<EOL><DEDENT>elif config['<STR_LIT>'] > <NUM_LIT:1>:<EOL><INDENT>logging.getLogger().setLevel(logging.DEBUG)<EOL><DEDENT><DEDENT>return ObjectView(config)<EOL>
Load settings from default config and optionally
overwrite with config file and commandline parameters
(in that order).