mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-17 21:23:18 +00:00
In load_plugins, check for __init__.py files and avoid adding
them into the pluginmap
This commit is contained in:
parent
7cda6f7d6e
commit
7baec5a69f
@ -82,7 +82,7 @@ def load_plugins():
|
||||
if plugtype == '.sh':
|
||||
pluginmap[plugin] = shellmodule.Plugin(
|
||||
os.path.join(plugindir, plugin + '.sh'))
|
||||
else:
|
||||
elif "__init__" not in plugin:
|
||||
plugins.add(plugin)
|
||||
for plugin in plugins:
|
||||
tmpmod = __import__(plugin)
|
||||
|
Loading…
x
Reference in New Issue
Block a user