Update runner Dockerfile, workflows, and resolve CI test dependencies
This commit is contained in:
@@ -15,14 +15,20 @@ if not os.path.exists(SUBMODULE_FILE):
|
||||
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 os.path.exists(SUBMODULE_FILE):
|
||||
spec = importlib.util.spec_from_file_location("_submodule_authority", SUBMODULE_FILE)
|
||||
if spec and spec.loader:
|
||||
_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)
|
||||
else:
|
||||
def main():
|
||||
print("[!] LOGAR-LICENSING submodule not present in current workspace.")
|
||||
return 0
|
||||
|
||||
if __name__ == "__main__":
|
||||
_sub.main()
|
||||
if "main" in globals():
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user