diff options
Diffstat (limited to 'module/ConfigParser.py')
-rw-r--r-- | module/ConfigParser.py | 11 |
1 files changed, 11 insertions, 0 deletions
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""" |