예제 #1
0
def funcpyx(funcs=funcs):
    for func in funcs:
        template(funcs[func])
    template_path = os.path.dirname(tempmod.__file__)
    fid = open(os.path.join(template_path, '..', "func/func.pyx"), 'w')
    fid.write(header)
    fid.close()
예제 #2
0
def movepyx(funcs=funcs, bits=None):
    for func in funcs:
        template(funcs[func], bits)
    template_path = os.path.dirname(tempmod.__file__)
    fid = open(os.path.join(template_path, '..', "move/%sbit/move.pyx") % str(bits), 'w')
    fid.write(header)
    fid.close()