From 0a705696089fdc28463d45598fde2ceb78220790 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 18 Jun 2009 13:17:18 +0200 Subject: plugin for gigasize --- Plugins/Plugin.py | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'Plugins/Plugin.py') diff --git a/Plugins/Plugin.py b/Plugins/Plugin.py index f43172b55..ba3ee29b3 100644 --- a/Plugins/Plugin.py +++ b/Plugins/Plugin.py @@ -1,6 +1,22 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- - +# +#Copyright (C) 2009 kingzero, RaNaN +# +#This program is free software; you can redistribute it and/or modify +#it under the terms of the GNU General Public License as published by +#the Free Software Foundation; either version 3 of the License, +#or (at your option) any later version. +# +#This program is distributed in the hope that it will be useful, +#but WITHOUT ANY WARRANTY; without even the implied warranty of +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +#See the GNU General Public License for more details. +# +#You should have received a copy of the GNU General Public License +# along with this program; if not, see . +# +### import ConfigParser import re @@ -76,7 +92,7 @@ class Plugin(): self.config[option] = False if self.config[option].lower() == 'false' else self.config[option] def init_ocr(self): - modul = __import__(self.props['name'], fromlist=['plugins']) + modul = __import__("captcha."+self.props['name'], fromlist=['captcha']) captchaClass = getattr(modul, self.props['name']) self.ocr = captchaClass() -- cgit v1.2.3