28 lines
654 B
Python
28 lines
654 B
Python
# should replace static RUNNER_DICT
|
|
# WIP
|
|
|
|
import importlib
|
|
from pathlib import Path
|
|
from typing import TYPE_CHECKING
|
|
|
|
from icecream import ic
|
|
|
|
if TYPE_CHECKING:
|
|
from abratest.env_manager import EnvFile, EnvManager
|
|
|
|
|
|
class RunnerManager:
|
|
def __init__(self, env_files: list["EnvFile"]):
|
|
pass
|
|
|
|
root = Path("src")
|
|
ic(root.resolve())
|
|
for module_path in root.rglob("*/runner*.py"):
|
|
module_path = module_path.as_posix().replace("/", ".").replace(".py", "")
|
|
ic(module_path)
|
|
module = importlib.import_module(module_path)
|
|
ic(dir(module))
|
|
# exit()
|
|
|
|
|
|
# ic(RUNNER_DICT)
|