From 0a2458c69bae12267170c10cd93da37f5fcb2702 Mon Sep 17 00:00:00 2001 From: Alexander Cherniuk Date: Sun, 19 Sep 2010 11:03:25 +0300 Subject: [PATCH] A better fix for nonexistent plugins directories. --- src/plugins/pluginmanager.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/plugins/pluginmanager.py b/src/plugins/pluginmanager.py index 29091da63..de3d4e059 100644 --- a/src/plugins/pluginmanager.py +++ b/src/plugins/pluginmanager.py @@ -101,9 +101,7 @@ class PluginManager(object): ''' for path in gajim.PLUGINS_DIRS: pc = PluginManager.scan_dir_for_plugins(path) - if pc: - self.add_plugins(pc) - + self.add_plugins(pc) self._activate_all_plugins_from_global_config() @log_calls('PluginManager') @@ -400,7 +398,7 @@ class PluginManager(object): fields = ('name', 'short_name', 'version', 'description', 'authors', 'homepage') if not os.path.isdir(path): - return + return plugins_found dir_list = os.listdir(path)