11 target = os.path.join(os.path.curdir, "..","data","images")
14 grid_size = int(argv[2])
19 if not os.path.exists(target):
22 create_images([grid_size, grid_size], font_name=os.path.join(os.path.curdir, "..", "data", "DejaVuSans.ttf"))
24 for colour in piece_char.keys():
25 for piece in piece_char[colour].keys():
26 pygame.image.save(images[colour][piece], os.path.join(target,str(colour)+"_"+str(piece)+".png"))
27 pygame.image.save(small_images[colour][piece], os.path.join(target,str(colour)+"_"+str(piece)+"_small.png"))
32 if __name__ == "__main__":
33 sys.exit(main(sys.argv))