Gating network behind compile flag
This commit is contained in:
+3
-4
@@ -1,6 +1,7 @@
|
||||
import argparse
|
||||
import json
|
||||
import os
|
||||
|
||||
from tools.writeifchanged import write_if_changed
|
||||
|
||||
parser = argparse.ArgumentParser(description="Item JSON to .h defines")
|
||||
parser.add_argument("--json", required=True, help="Path to item JSON file")
|
||||
@@ -109,6 +110,4 @@ out += [
|
||||
"",
|
||||
]
|
||||
|
||||
os.makedirs(os.path.dirname(args.output), exist_ok=True)
|
||||
with open(args.output, "w", encoding="utf-8") as f:
|
||||
f.write("\n".join(out))
|
||||
write_if_changed(args.output, "\n".join(out))
|
||||
|
||||
Reference in New Issue
Block a user