summaryrefslogtreecommitdiffstats
path: root/Plugins
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-06-18 00:03:11 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-06-18 00:03:11 +0200
commit137bb7fd2f4162ea68a81c8d782c6e628a5b27e3 (patch)
treea5d311747509c5b1aef8764511f0b0081a57d4b9 /Plugins
parentplugins can import captcha method, see #6 (diff)
downloadpyload-137bb7fd2f4162ea68a81c8d782c6e628a5b27e3.tar.xz
fixed disconnecting
Diffstat (limited to 'Plugins')
-rw-r--r--Plugins/Plugin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Plugins/Plugin.py b/Plugins/Plugin.py
index adcaa7678..f43172b55 100644
--- a/Plugins/Plugin.py
+++ b/Plugins/Plugin.py
@@ -76,7 +76,7 @@ class Plugin():
self.config[option] = False if self.config[option].lower() == 'false' else self.config[option]
def init_ocr(self):
- modul = __import__("captcha."+ self.props['name'])
+ modul = __import__(self.props['name'], fromlist=['plugins'])
captchaClass = getattr(modul, self.props['name'])
self.ocr = captchaClass()