Importing modules in the plugin system do not work correctly.
Bug description
Steps to reproduce
plugins = gajim.plugin_manager.scan_dir_for_plugins('/home/test/gajim/plugins/banner_tweaks',
False)
print plugins
plugins = gajim.plugin_manager.scan_dir_for_plugins('/home/test/gajim/plugins/dbus_plugin',
False)
print plugins
And I am see this:
[\<class 'plugin.BannerTweaksPlugin'>, \<class 'plugin.BannerTweaksPlugin'>]
[\<class 'plugin.BannerTweaksPlugin'>, \<class 'plugin.BannerTweaksPlugin'>]
Both modules have the same name - "plugin" (plugin.py) May need to slightly modify the plug-in search function. Divide it into two phases, 1. Search plugin in the directory 2. call the first function for each directory in a directory with plugins