mirror of
https://github.com/blackboxprogramming/lucidia.git
synced 2026-03-17 00:57:11 -05:00
19 lines
429 B
Python
19 lines
429 B
Python
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)
|