#!/usr/bin/env python3
"""Run proc from a source checkout, without installing it.

`pip install proc-warden` puts `proc` and `proc-warden` on PATH; this shim is for
the repo itself, so a clone (and a ~/bin/proc symlinked at it) works with nothing
installed. realpath, not abspath: invoked through a symlink, __file__ is the
symlink's path and dirname would miss src/ entirely.
"""

from __future__ import annotations

import os
import sys

sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), "src"))

from proc_warden.cli import run  # noqa: E402

if __name__ == "__main__":
    run()
