From 5c96bb4aaa688b577d37b6c2c7ec163ffe031b6e Mon Sep 17 00:00:00 2001 From: Stephen Boddy Date: Sun, 29 Nov 2015 05:25:03 +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' %