diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-29 22:22:50 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-29 22:22:50 +0100 |
commit | 3c85d66783b0f03a36d36356ecdebf17754f75ec (patch) | |
tree | 75730b2e8edb16504c0f16a29d98eea6e3d0b91c /module/ConfigParser.py | |
parent | fixed MultiHome (diff) | |
download | pyload-3c85d66783b0f03a36d36356ecdebf17754f75ec.tar.xz |
MU free fixed
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""" |