papermario/tools/build/pm_charset.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
329 B
Python
Raw Normal View History

#!/usr/bin/env python3
from sys import argv
if __name__ == "__main__":
argv.pop(0) # python3
out = argv.pop(0)
with open(out, "wb") as f:
for path in argv:
with open(path, "rb") as j:
f.write(j.read())
while f.tell() % 8 != 0:
f.write(b'\0')