summaryrefslogtreecommitdiffstats
path: root/plugin_registry.py
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-09-19 13:48:55 +0200
committerJan Pokorný <jpokorny@redhat.com>2014-09-22 19:59:04 +0200
commitc6614b644263420274a9257782e196db1b073050 (patch)
treee0eef45d0859dfa1ef571d79775143d0e5318a04 /plugin_registry.py
parent78872c67971cccc57d8526a39bcebfbdf3ba0bd8 (diff)
downloadclufter-c6614b644263420274a9257782e196db1b073050.tar.gz
clufter-c6614b644263420274a9257782e196db1b073050.tar.xz
clufter-c6614b644263420274a9257782e196db1b073050.zip
plugin_registry: fix overly keen (nested) plugin discovery
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'plugin_registry.py')
-rw-r--r--plugin_registry.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin_registry.py b/plugin_registry.py
index 332508c..9c129d5 100644
--- a/plugin_registry.py
+++ b/plugin_registry.py
@@ -220,6 +220,8 @@ class PluginRegistry(type):
if not path_plugins:
# visit *.py files within (and under) the path and probe them
for root, dirs, files in walk(path):
+ if root != path:
+ break # ATM we only support flat dir (nested ~ private)
for f in files:
name, ext = splitext(f)
if fp.match(f):