#!/usr/bin/env python3
"""Run the Homer installer from a source checkout."""

from __future__ import annotations

import runpy
import sys
from pathlib import Path


SCRIPT = Path(__file__).resolve().parents[1] / "scripts" / "homer-install.py"

if not SCRIPT.is_file():
    raise SystemExit(f"Homer installer not found: {SCRIPT}")

sys.argv[0] = str(SCRIPT)
runpy.run_path(str(SCRIPT), run_name="__main__")
