From 0e2f1700320479db8829b248bd7c0151a2ddb337 Mon Sep 17 00:00:00 2001 From: Stephen Boddy Date: Sat, 28 Nov 2015 18:58:47 +0100 Subject: [PATCH] Fix warning trying to import the __init__.py file as a plugin --- terminatorlib/plugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/terminatorlib/plugin.py b/terminatorlib/plugin.py index 639b6542..33f69623 100755 --- a/terminatorlib/plugin.py +++ b/terminatorlib/plugin.py @@ -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' %