CI Test Suite / Run Component Tests & Pipeline Verification (push) Failing after 1m18s
29 lines
1.0 KiB
Python
29 lines
1.0 KiB
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 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):
|
|
alt_sub = os.path.join(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")), "LOGAR-LICENSING", "License_Authority.py")
|
|
if os.path.exists(alt_sub):
|
|
SUBMODULE_FILE = alt_sub
|
|
|
|
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()
|