From a7fc0b91b3a1f35cc7e5a3dbbf7080892c1188e0 Mon Sep 17 00:00:00 2001 From: Aqua Date: Tue, 10 Nov 2026 18:32:50 +0000 Subject: [PATCH] sound-guard: the rendering subprocess must not leave __pycache__ in dings-voices Co-Authored-By: Claude Sonnet 5.5 --- tools/sound-guard/guard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/sound-guard/guard.py b/tools/sound-guard/guard.py index 0e93044..78f7755 100644 --- a/tools/sound-guard/guard.py +++ b/tools/sound-guard/guard.py @@ -259,7 +259,7 @@ def render_all(tmp, neutral_dir): for ident in intended()["identities"]: steps.append((["node", str(TOOLS / "earcon-workshop" / "cli.mjs"), ident, str(tmp / "earcon" / ident)], None)) for cmd, _ in steps: - r = subprocess.run(cmd, capture_output=True, text=True, timeout=RENDER_TIMEOUT_S) + r = subprocess.run(cmd, capture_output=True, text=True, timeout=RENDER_TIMEOUT_S, env={**os.environ, "PYTHONDONTWRITEBYTECODE": "1"}) if r.returncode: raise GuardError(f"render step failed: {' '.join(cmd[:2])}\n{r.stderr[-STDERR_TAIL:]}") return tmp / "dings" / "out", tmp / "earcon"