File size: 449 Bytes
ed6bec6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import json
from pathlib import Path
from generator.config import DICTIONARY_DIR
def main():
for path in DICTIONARY_DIR.glob("*.json"):
print(f"Checking {path.name}...")
try:
with path.open("r", encoding="utf-8") as f:
json.load(f)
print(f" OK")
except Exception as e:
print(f" ERROR in {path.name}: {e}")
return
if __name__ == "__main__":
main()
|