示例#1
0
def write_task_options_to_preset_xml_and_print(task_options_d, output_file,
                                               warning_msg):
    if task_options_d:
        IO.write_schema_task_options_to_xml(task_options_d, output_file)
        print "Wrote preset to {x}".format(x=output_file)
    else:
        print warning_msg
示例#2
0
def write_task_options_to_preset_xml_and_print(opts, output_file, warning_msg):
    if opts:
        IO.write_schema_task_options_to_xml(opts, output_file)
        print "Wrote preset to {x}".format(x=output_file)
    else:
        print warning_msg