Gating network behind compile flag

This commit is contained in:
2026-08-11 12:52:38 -05:00
parent 5f34cb34b2
commit 830864aa8a
281 changed files with 334 additions and 13204 deletions
+13
View File
@@ -0,0 +1,13 @@
import os
def write_if_changed(path, content):
try:
with open(path, "r", encoding="utf-8") as f:
if f.read() == content:
return
except FileNotFoundError:
pass
os.makedirs(os.path.dirname(path), exist_ok=True)
with open(path, "w", encoding="utf-8") as f:
f.write(content)