def read(args):
if args.config_file is None or not isfile(args.config_file):<EOL><INDENT>return<EOL><DEDENT>logging.info("<STR_LIT>"%args.config_file)<EOL>config = cparser.ConfigParser()<EOL>config.read(args.config_file)<EOL>if not config.has_section('<STR_LIT>'):<EOL><INDENT>raise RuntimeError("<STR_LIT>")<EOL><DEDENT>for (name, value) in config.items('<STR_LIT>'):<EOL><INDENT>if value == "<STR_LIT:True>":<EOL><INDENT>value = True<EOL><DEDENT>elif value == "<STR_LIT:False>":<EOL><INDENT>value = False<EOL><DEDENT>if getattr(args, name) is None:<EOL><INDENT>setattr(args, name, value)<EOL><DEDENT><DEDENT>
Reading the configure file and adds non-existing attributes to 'args