Fix warning trying to import the __init__.py file as a plugin
This commit is contained in:
parent
9fde814a44
commit
0e2f170032
|
@ -86,6 +86,8 @@ class PluginRegistry(borg.Borg):
|
||||||
sys.path.remove(plugindir)
|
sys.path.remove(plugindir)
|
||||||
continue
|
continue
|
||||||
for plugin in files:
|
for plugin in files:
|
||||||
|
if plugin == '__init__.py':
|
||||||
|
continue
|
||||||
pluginpath = os.path.join(plugindir, plugin)
|
pluginpath = os.path.join(plugindir, plugin)
|
||||||
if os.path.isfile(pluginpath) and plugin[-3:] == '.py':
|
if os.path.isfile(pluginpath) and plugin[-3:] == '.py':
|
||||||
dbg('PluginRegistry::load_plugins: Importing plugin %s' %
|
dbg('PluginRegistry::load_plugins: Importing plugin %s' %
|
||||||
|
|
Loading…
Reference in New Issue