29 lines
962 B
Python
29 lines
962 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
LOGAR Master License Authority Proxy
|
|
Delegates directly to the standalone submodule: LOGAR-LICENSING/License_Authority.py
|
|
Repo: https://gitea.eibl.tech/me0nline/LOGAR-LICENSING.git
|
|
"""
|
|
|
|
import os
|
|
import sys
|
|
import importlib.util
|
|
|
|
ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
|
|
SUBMODULE_FILE = os.path.join(ROOT_DIR, "LOGAR-LICENSING", "License_Authority.py")
|
|
|
|
if not os.path.exists(SUBMODULE_FILE):
|
|
raise ImportError(f"LOGAR-LICENSING submodule not found at {SUBMODULE_FILE}. Run 'git submodule update --init --recursive'.")
|
|
|
|
spec = importlib.util.spec_from_file_location("_submodule_authority", SUBMODULE_FILE)
|
|
_sub = importlib.util.module_from_spec(spec)
|
|
spec.loader.exec_module(_sub)
|
|
|
|
# Export public symbols from submodule into this module's namespace
|
|
for attr in dir(_sub):
|
|
if not attr.startswith("__"):
|
|
globals()[attr] = getattr(_sub, attr)
|
|
|
|
if __name__ == "__main__":
|
|
_sub.main()
|