Inventory spec: make system optional

This commit is contained in:
Johannes Kirschbauer
2024-07-06 17:55:19 +02:00
parent edcc1a5cb2
commit 55c4003a76
2 changed files with 1 additions and 5 deletions

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)