ChatON:p1: meta json to hpp conversion - Initial skeleton
load the json file and put the template ids
This commit is contained in:
parent
1574201f71
commit
0c21a0084f
|
|
@ -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))
|
||||
|
||||
Loading…
Reference in New Issue