ChatON:p1: meta json to hpp conversion - Initial skeleton

load the json file and put the template ids
This commit is contained in:
HanishKVC 2024-05-12 12:29:16 +05:30
parent 1574201f71
commit 0c21a0084f

View file

@ -0,0 +1,13 @@
#!/usr/bin/env python3
# Convert chaton meta json file to c++ hpp file
# by Humans for All
import sys
import json
fp=open(sys.argv[1])
j=json.load(fp)
print("{")
for tmpl in j:
print("\t{{ \"{}\", ".format(tmpl))