Fix warning trying to import the __init__.py file as a plugin
This commit is contained in:
parent
4d8b6acad2
commit
5c96bb4aaa
@ -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' %
|
||||
|
Loading…
Reference in New Issue
Block a user