renderbug-cpp/verify-configs.py

15 lines
370 B
Python
Raw Normal View History

Import("env")
import fnmatch
import os
2023-02-18 17:00:19 +00:00
import json
def verify_json(source, target, env):
for root, dirnames, files in os.walk("data"):
for file in files:
if file.endswith(".json"):
2023-02-18 17:00:19 +00:00
print("Validating " + root + '/' + file + '...')
json.load(open(root + '/' + file, 'r'))
env.AddPreAction("buildfs", verify_json)