mirror of
https://github.com/blackboxprogramming/lucidia.git
synced 2026-03-17 09:37:56 -05:00
Update codex_loader.py
This commit is contained in:
committed by
GitHub
parent
53321c6c47
commit
ff27a5711a
@@ -1 +1,18 @@
|
||||
print("Hello World")
|
||||
from __future__ import annotations
|
||||
|
||||
from importlib import import_module
|
||||
from typing import Iterable
|
||||
|
||||
|
||||
def ensure_modules(mod_paths: Iterable[str]) -> None:
|
||||
"""
|
||||
Import a list of modules to ensure class/function symbols are registered.
|
||||
|
||||
Example:
|
||||
ensure_modules([
|
||||
"codex.operator_definition",
|
||||
"codex.truth_table",
|
||||
])
|
||||
"""
|
||||
for path in mod_paths:
|
||||
import_module(path)
|
||||
|
||||
Reference in New Issue
Block a user