API: extensions & tests #1699

Merged
clan-bot merged 6 commits from hsjobeki/clan-core:hsjobeki-main into main 2024-07-06 16:01:28 +00:00
2 changed files with 1 additions and 5 deletions
Showing only changes of commit 04ef8d824e - Show all commits

View File

@ -5,7 +5,7 @@ package schema
description?: string,
icon?: string
tags: [...string]
system: string
system?: string
}
#role: string

View File

@ -75,10 +75,6 @@ def load_dataclass_from_file(
module_name = (
os.path.relpath(file_path, root_dir).replace(os.path.sep, ".").rstrip(".py")
)
# spec = importlib.util.spec_from_file_location(module_name, file_path)
# module = importlib.util.module_from_spec(spec)
# spec.loader.exec_module(module)
# breakpoint()
try:
sys.path.insert(0, root_dir)
spec = importlib.util.spec_from_file_location(module_name, file_path)