mirror of
https://github.com/simon987/sist2.git
synced 2025-04-16 00:46:43 +00:00
9 lines
212 B
Python
9 lines
212 B
Python
|
|
try:
|
|
with open("/usr/lib/file/magic.mgc", "rb") as f:
|
|
data = f.read()
|
|
except:
|
|
data = bytes([])
|
|
|
|
print("char magic_database_buffer[%d] = {%s};" % (len(data), ",".join(str(int(b)) for b in data)))
|