Ignore nonexistent plugins directories

This commit is contained in:
Alexander Cherniuk 2010-09-19 10:59:44 +03:00
parent ae9d234dec
commit 07af278d0b
1 changed files with 3 additions and 2 deletions

View File

@ -99,9 +99,10 @@ class PluginManager(object):
''' '''
Registered handlers of GUI extension points. Registered handlers of GUI extension points.
''' '''
for path in gajim.PLUGINS_DIRS: 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() self._activate_all_plugins_from_global_config()