from pathlib import Path
import json
# Run from the scenario-runner checkout; keep this script beside fake-codex.cjs.
fixture = Path(__file__).resolve().with_name("fake-codex.cjs")
fixture.chmod(0o755)
p = Path("scripts/scenarios/start-app.ts")
s = p.read_text().replace('enabled: false,', 'enabled: driver === "codex",')
s = s.replace('binaryPath: noModel', 'binaryPath: ' + json.dumps(str(fixture)))
p.write_text(s)
