#!/usr/bin/env python3
"""Run stayfixed from the plugin root, with no installed wheel required."""

import pathlib
import sys

if sys.version_info < (3, 11):  # noqa: UP036 - this check exists for older interpreters
    sys.stderr.write(
        "stayfixed: refused: python 3.11 or newer is required, found "
        f"{sys.version.split()[0]} at {sys.executable}\n"
    )
    sys.exit(2)

sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1] / "src"))

from stayfixed.cli import main

raise SystemExit(main())
