WIP
This commit is contained in:
parent
db8d9f6298
commit
f0bf98f613
1 changed files with 28 additions and 0 deletions
28
src/runner_manager.py
Normal file
28
src/runner_manager.py
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
# 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 src.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)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue