Fix warning trying to import the __init__.py file as a plugin

This commit is contained in:
Stephen Boddy 2015-11-29 05:25:03 +01:00
parent 4d8b6acad2
commit 5c96bb4aaa

View File

@ -86,6 +86,8 @@ class PluginRegistry(borg.Borg):
sys.path.remove(plugindir)
continue
for plugin in files:
if plugin == '__init__.py':
continue
pluginpath = os.path.join(plugindir, plugin)
if os.path.isfile(pluginpath) and plugin[-3:] == '.py':
dbg('PluginRegistry::load_plugins: Importing plugin %s' %