summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--patternutils/config.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/patternutils/config.py b/patternutils/config.py
index 2f9e8ce..de0de8e 100644
--- a/patternutils/config.py
+++ b/patternutils/config.py
@@ -32,6 +32,7 @@ def load_template(template_name: str, command_name: str) -> Tuple[str, str]:
def find_templates(template_name: str, command_name: str = None) -> List[str]:
+ template_glob = '{}.*'.format(template_name)
command_glob = '*' if command_name is None else command_name
command_glob = os.path.join(CONFIG_PATH, command_glob)
return glob.glob(os.path.join(command_glob, template_glob))