Update xtendr/xtendrsystem.py

This commit is contained in:
Lerking
2025-03-27 20:33:19 +00:00
parent a093b3f56c
commit 1be429c5cd

View File

@@ -2,6 +2,7 @@ import importlib
import sys
import os
import json
import threading
from xtendr.xtendrbase import XtendRBase
__version__ = "0.1.3"
@@ -74,7 +75,7 @@ class XtendRSystem:
"""Pre-load data if needed"""
if name in plugins:
if self.plugins[name].use_pre_load: # Is pre-loading neccessary?
self.plugins[name].pre_load()
threading.Thread(target=self.plugins[name].pre_load()).start()
def run(self, name: str, *args, **kwargs):
"""Run the plugin's 'run' method if available."""