mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 08:52:40 +01:00
ae66312d8c
* Add Python linter to github actions * wip * Add back splat_ext * Format files * C++ -> C * format 2 files * split workflow into separate file, line length 120, fix excludes * -l 120 in ci * update black locally and apply formatting changes * pyproject.toject --------- Co-authored-by: Ethan Roseman <ethteck@gmail.com>
15 lines
330 B
Python
Executable File
15 lines
330 B
Python
Executable File
#!/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")
|