summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-09-19 13:52:16 +0200
committerJan Pokorný <jpokorny@redhat.com>2014-09-22 20:01:16 +0200
commit8a89761b99bfd66d16488db2f34d2dcc4883a569 (patch)
tree4c11f235eddda7de4b0cef4ce37713daca4eed4b
parentaa73c2b62d7b22b4a7371dd85bb24d9c9cbd26b0 (diff)
downloadclufter-8a89761b99bfd66d16488db2f34d2dcc4883a569.tar.gz
clufter-8a89761b99bfd66d16488db2f34d2dcc4883a569.tar.xz
clufter-8a89761b99bfd66d16488db2f34d2dcc4883a569.zip
plugin_registry: also this discovery skips '[.]*' files
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r--plugin_registry.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin_registry.py b/plugin_registry.py
index 9c129d5..0e96733 100644
--- a/plugin_registry.py
+++ b/plugin_registry.py
@@ -210,7 +210,7 @@ class PluginRegistry(type):
Returns `{plugin_name: plugin_cls}` mapping of plugins found.
"""
ret = {}
- fname_start_use = args2sgpl(fname_start or '[!_]')
+ fname_start_use = args2sgpl(fname_start or '[!_.]')
fp = re_compile('|'.join(
translate(fs + '*' + module_ext)
for fs in (pfx.split('-', 1)[0] for pfx in fname_start_use)