2026-09-18 09:47:29 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2026-09-22 13:12:33 +08:00
|
|
|
"""Compatibility import for the extracted host-copy wire implementation.
|
2026-09-18 09:47:29 +08:00
|
|
|
|
2026-09-22 13:12:33 +08:00
|
|
|
Standalone legacy worker scripts load this file directly. The source-tree
|
|
|
|
|
fallback loads only the portable package, never the vllm_omni initializer.
|
2026-09-18 09:47:29 +08:00
|
|
|
"""
|
|
|
|
|
|
2026-09-22 13:12:33 +08:00
|
|
|
import sys
|
|
|
|
|
from pathlib import Path
|
2026-09-18 09:47:29 +08:00
|
|
|
|
2026-09-22 13:12:33 +08:00
|
|
|
try:
|
|
|
|
|
from omni_stage_contracts.wire import * # noqa: F403
|
|
|
|
|
except ModuleNotFoundError as exc:
|
|
|
|
|
if exc.name != "omni_stage_contracts":
|
|
|
|
|
raise
|
|
|
|
|
sys.path.insert(0, str(Path(__file__).resolve().parents[4]))
|
|
|
|
|
from omni_stage_contracts.wire import * # noqa: F403
|