#!/usr/bin/env python3
"""Development/PyInstaller entry point for darwin-nic."""

from __future__ import annotations

import sys
from pathlib import Path


def _add_src_path() -> None:
    """Allow the script to run from a source checkout without installation."""
    src_path = Path(__file__).resolve().parent / "src"
    if src_path.exists():
        sys.path.insert(0, str(src_path))


def main() -> int:
    _add_src_path()

    from darwin_mgmt_nic.app import main as app_main

    return app_main()


if __name__ == "__main__":
    sys.exit(main())
