1
0
forked from clan/clan-core

Inventory spec: make system optional

This commit is contained in:
Johannes Kirschbauer 2024-07-06 17:55:19 +02:00
parent 2ebc0902c1
commit 04ef8d824e
Signed by: hsjobeki
SSH Key Fingerprint: SHA256:vX3utDqig7Ph5L0JPv87ZTPb/w7cMzREKVZzzLFg9qU
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)