This commit is contained in:
2025-03-28 18:22:16 +01:00
parent 406c1b77ed
commit ebf31756b5
3 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import json
import threading
from xtendr.xtendrbase import XtendRBase
__version__ = "0.3.0"
__version__ = "0.3.2"
class XtendRSystem:
"""Plugin system to manage plugins.
@@ -69,7 +69,7 @@ class XtendRSystem:
}
print(f"Attached plugin '{name}'.")
print(f"Running pre-load on '{name}'.")
thread = threading.Thread(target=self.plugins[name].pre_load(), args=(callback,))
thread = threading.Thread(target=self.plugins[name]['instance'].pre_load, args=(callback,))
thread.start()
except (ModuleNotFoundError, json.JSONDecodeError, AttributeError) as e:
print(f"Failed to attach plugin '{name}': {e}")