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
1 changed files with 13 additions and 0 deletions
13
scripts/chaton-meta-json-to-hpp.py
Executable file
13
scripts/chaton-meta-json-to-hpp.py
Executable 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))
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue