mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-26 03:18:52 -06:00
chore: type the install.py loaders
This commit is contained in:
1 parent
d096a31143
commit
c82bb54051
4 files changed
+13
-5
No files matched your search
@@ -19,6 +19,8 @@ ROOT = Path(__file__).resolve().parent.parent
|
||||
OUTPUT = ROOT / "schemas" / "install-events.schema.json"
|
||||
|
||||
_spec = importlib.util.spec_from_file_location("install", ROOT / "install.py")
|
||||
if _spec is None or _spec.loader is None:
|
||||
raise ImportError(f"cannot load {ROOT / 'install.py'}")
|
||||
_install = importlib.util.module_from_spec(_spec)
|
||||
_spec.loader.exec_module(_install)
|
||||
|
||||
|
||||
Reference in new issue
Block a user