# Run from the proof-driver checkout before scenarios:prove.
# No project needs a T3 home outside a Git repository.
from pathlib import Path
import tempfile
config = Path("scripts/e2e.config.ts")
home = str(Path(tempfile.mkdtemp(prefix="no-project-proof-")) / "home")
text = config.read_text()
text = text.replace('path.resolve(scripts, "../.t3/scenarios")', repr(home))
config.write_text(text)
