Exemplo n.º 1
0
def output_footer(func,output,pgm_name):
    if func == 'all':
        footer = open(FOOTER_PATH,'r').read()
        twriter = FileWriter(output)
        twriter.append(footer)
        twriter.close()
        print "%s's footer written" % pgm_name
    else:
        print "%s's footer not written cause func incr"  % pgm_name
Exemplo n.º 2
0
def output_header(output,func,pgm_name):
    if func == 'all':
        header = open(HEADER_PATH,'r').read()
        twriter = FileWriter(output)
        twriter.write(header % pgm_name)
        twriter.close()
        print "%s's header written" % pgm_name
    else:
        print "%s's header not written cause func incr"
Exemplo n.º 3
0
def output_set_vals(output,base_dict,special_dict,pgm_name):
    twriter = FileWriter(output)
    twriter.append(''.join(set_vals(base_dict,'base',reverse=True)))
    twriter.append(''.join(set_vals(special_dict,'special')))
    twriter.close()
    print "%s's set point written" % pgm_name
Exemplo n.º 4
0
def output_div(output,base_dict,pgm_name):
    twriter = FileWriter(output)
    twriter.append(''.join(set_div(base_dict)))
    twriter.close()
    print "%s's base case devide written" % pgm_name
Exemplo n.º 5
0
def output_watch_vals(output,base_dict,special_dict,pgm_name):
    twriter = FileWriter(output)
    twriter.append(''.join(watch_vals(base_dict,reverse=True)))
    twriter.append(''.join(watch_vals(special_dict)))
    twriter.close()
    print "%s's watch point written" % pgm_name