From 07af278d0b78d982bd9b9dfbac1abf68db309d80 Mon Sep 17 00:00:00 2001 From: Alexander Cherniuk Date: Sun, 19 Sep 2010 10:59:44 +0300 Subject: [PATCH] Ignore nonexistent plugins directories --- src/plugins/pluginmanager.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/pluginmanager.py b/src/plugins/pluginmanager.py index 63b4f58db..29091da63 100644 --- a/src/plugins/pluginmanager.py +++ b/src/plugins/pluginmanager.py @@ -99,9 +99,10 @@ class PluginManager(object): ''' Registered handlers of GUI extension points. ''' - for path in gajim.PLUGINS_DIRS: - self.add_plugins(PluginManager.scan_dir_for_plugins(path)) + pc = PluginManager.scan_dir_for_plugins(path) + if pc: + self.add_plugins(pc) self._activate_all_plugins_from_global_config()