The-Powder-Toy/resources/icon/icontofile.py
jacob1 2df333c99f TPT is now shown in desktop menus when installing on linux
uses powder-48.png as icon + 3rd .desktop entry
2016-09-04 21:27:55 -04:00

8 lines
224 B
Python

import sys
with open(sys.argv[1], "rb") as icon:
icondata = icon.read()
output = ["0x{0:02X}".format(ord(byte)) for byte in icondata]
for line in range(len(output)/16+1):
print(", ".join(output[line*16:(line+1)*16])+",")