2
0
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:
Victor Hu 2015-05-05 16:36:04 -04:00
parent 7cda6f7d6e
commit 7baec5a69f

View File

@ -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)