2023-02-18 16:47:25 +00:00
|
|
|
Import("env")
|
|
|
|
|
|
|
|
import fnmatch
|
|
|
|
import os
|
2023-02-18 17:00:19 +00:00
|
|
|
import json
|
2023-02-18 16:47:25 +00:00
|
|
|
|
|
|
|
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'))
|
2023-02-18 16:47:25 +00:00
|
|
|
|
|
|
|
env.AddPreAction("buildfs", verify_json)
|