A better fix for nonexistent plugins directories.

This commit is contained in:
Alexander Cherniuk 2010-09-19 11:03:25 +03:00
parent 07af278d0b
commit 0a2458c69b
1 changed files with 2 additions and 4 deletions

View File

@ -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)