diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-06-18 00:03:11 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-06-18 00:03:11 +0200 |
commit | 137bb7fd2f4162ea68a81c8d782c6e628a5b27e3 (patch) | |
tree | a5d311747509c5b1aef8764511f0b0081a57d4b9 /Plugins | |
parent | plugins can import captcha method, see #6 (diff) | |
download | pyload-137bb7fd2f4162ea68a81c8d782c6e628a5b27e3.tar.xz |
fixed disconnecting
Diffstat (limited to 'Plugins')
-rw-r--r-- | Plugins/Plugin.py | 2 |
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() |