diff --git a/scripts/chaton-meta-json-to-hpp.py b/scripts/chaton-meta-json-to-hpp.py new file mode 100755 index 000000000..a1272deb2 --- /dev/null +++ b/scripts/chaton-meta-json-to-hpp.py @@ -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)) +