def write(args):
logging.info("<STR_LIT>"%args.config_file)<EOL>if args.config_file is None:<EOL><INDENT>return<EOL><DEDENT>config = cparser.ConfigParser()<EOL>config.add_section("<STR_LIT>")<EOL>for p in [x for x in dir(args) if not x.startswith("<STR_LIT:_>")]:<EOL><INDENT>if p in IGNORE_ARGS:<EOL><INDENT>continue<EOL><DEDENT>value = getattr(args, p)<EOL>if value is not None:<EOL><INDENT>config.set('<STR_LIT>', p, str(value))<EOL><DEDENT><DEDENT>with open(args.config_file, '<STR_LIT:w>') as f:<EOL><INDENT>config.write(f)<EOL><DEDENT>
Writing the configure file with the attributes in 'args