From 3c85d66783b0f03a36d36356ecdebf17754f75ec Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 29 Dec 2010 22:22:50 +0100 Subject: MU free fixed --- module/ConfigParser.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'module/ConfigParser.py') diff --git a/module/ConfigParser.py b/module/ConfigParser.py index da4e734e5..ccf6f08d1 100644 --- a/module/ConfigParser.py +++ b/module/ConfigParser.py @@ -8,6 +8,8 @@ from shutil import copy from traceback import print_exc +IGNORE = ("FreakshareNet", "SpeedManager") +#ignore this plugin configs CONF_VERSION = 1 @@ -47,6 +49,8 @@ class ConfigParser: self.checkVersion() self.readConfig() + + self.deleteOldPlugins() #---------------------------------------------------------------------- def checkVersion(self, n=0): @@ -341,6 +345,13 @@ class ConfigParser: "value" : self.cast(config[2], config[4]) } + def deleteOldPlugins(self): + """ remove old plugins from config """ + + for name in IGNORE: + if self.plugin.has_key(name): + del self.plugin[name] + ######################################################################## class Section: """provides dictionary like access for configparser""" -- cgit v1.2.3