17 lines
559 B
Python
17 lines
559 B
Python
from __future__ import annotations
|
|
|
|
import importlib.util
|
|
from pathlib import Path
|
|
|
|
|
|
_SOURCE = Path(__file__).resolve().parents[1] / "tencent-tat" / "hyapp_tat_deploy.py"
|
|
_SPEC = importlib.util.spec_from_file_location("_hyapp_tat_deploy_impl", _SOURCE)
|
|
if _SPEC is None or _SPEC.loader is None:
|
|
raise ImportError(f"cannot load deployment helper: {_SOURCE}")
|
|
_MODULE = importlib.util.module_from_spec(_SPEC)
|
|
_SPEC.loader.exec_module(_MODULE)
|
|
|
|
for _name, _value in vars(_MODULE).items():
|
|
if not _name.startswith("__"):
|
|
globals()[_name] = _value
|