#!python
"""OpenGate server launcher.

Thin entry point mirroring the ``og`` client launcher, so the server can be
started with ``uv run ./og-server`` (or ``./og-server``). This replaces the
old ``uv run Opengate/server.py`` invocation: the server implementation is now
the ``Opengate.server`` package, so its file path can no longer be run
directly.

All argument parsing and reactor setup lives in ``Opengate.server.main``; this
script only wires up ``sys.path`` and the pygame env flag before delegating, so
the game singletons always live in the ``Opengate.server`` submodules (never in
``__main__``).

Equivalent to ``python -m Opengate.server``.
"""

import sys
import os

sys.path.append("./")
os.environ["PYGAME_HIDE_SUPPORT_PROMPT"] = "1"

from Opengate.server import main


if __name__ == "__main__":
    main()
