27 lines
769 B
Python
27 lines
769 B
Python
#!/usr/bin/env python3
|
|
"""Compatibility entrypoint for the packaged JWeBot Edge runtime."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
|
|
ROOT = Path(__file__).resolve().parent
|
|
sys.path[:0] = [
|
|
str(ROOT / "packages" / "jwebot-config" / "src"),
|
|
str(ROOT / "packages" / "jwebot-sdk" / "src"),
|
|
str(ROOT / "packages" / "jwebot-official-extensions" / "src"),
|
|
str(ROOT / "packages" / "jwebot-kernel" / "src"),
|
|
]
|
|
|
|
from jwebot_kernel import edge_runtime as _runtime # noqa: E402
|
|
|
|
|
|
if __name__ == "__main__":
|
|
raise SystemExit(_runtime.main())
|
|
|
|
# Standard imports receive the implementation module itself, so legacy
|
|
# monkeypatching and runtime configuration continue to affect function globals.
|
|
sys.modules[__name__] = _runtime
|