EvaluationWorkspace
This commit is contained in:
+3
-2
@@ -4,6 +4,8 @@ import time
|
||||
from pathlib import Path
|
||||
import argparse
|
||||
|
||||
from copienator import atomic_write_json
|
||||
|
||||
if len(sys.argv) < 2:
|
||||
sys.exit("Usage: python script.py <InputDir>")
|
||||
|
||||
@@ -148,7 +150,6 @@ with open(INPUT_FILE, "r", encoding="utf-8") as f:
|
||||
|
||||
data = clean_obj(data)
|
||||
|
||||
with open(OUTPUT_FILE, "w", encoding="utf-8") as f:
|
||||
json.dump(data, f, ensure_ascii=False, indent=2)
|
||||
atomic_write_json(OUTPUT_FILE, data)
|
||||
|
||||
print("Fixed JSON saved to", OUTPUT_FILE)
|
||||
|
||||
Reference in New Issue
Block a user