diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2014-09-19 13:48:55 +0200 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2014-09-22 19:59:04 +0200 |
commit | c6614b644263420274a9257782e196db1b073050 (patch) | |
tree | e0eef45d0859dfa1ef571d79775143d0e5318a04 /plugin_registry.py | |
parent | 78872c67971cccc57d8526a39bcebfbdf3ba0bd8 (diff) | |
download | clufter-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.py | 2 |
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): |