From 43460c40d00819535dfeecfdb80f8a608f2190fd Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 13 Oct 2011 15:25:32 +0200 Subject: improvement for hook plugins, new internal plugin type --- module/HookManager.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'module/HookManager.py') diff --git a/module/HookManager.py b/module/HookManager.py index be5f548d7..88ce62da6 100644 --- a/module/HookManager.py +++ b/module/HookManager.py @@ -22,7 +22,6 @@ import __builtin__ import traceback from thread import start_new_thread from threading import RLock -from time import time from types import MethodType @@ -270,8 +269,8 @@ class HookManager: def unrarFinished(self, folder, fname): self.dispatchEvent("unrarFinished", folder, fname) - def startThread(self, function, pyfile): - t = HookThread(self.core.threadManager, function, pyfile) + def startThread(self, function, *args, **kwargs): + t = HookThread(self.core.threadManager, function, args, kwargs) def activePlugins(self): """ returns all active plugins """ -- cgit v1.2.3