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()
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()