From e7acd0dcf2efdf11e426038f9f71dc9bde4d737d Mon Sep 17 00:00:00 2001 From: David Paz Date: Sun, 17 Jul 2022 10:53:23 +0200 Subject: [PATCH] Search for templates in current dir Instead of searching in parent directory, search in current directory only. --- pre_commit_hooks/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pre_commit_hooks/util.py b/pre_commit_hooks/util.py index 64c026f..c9e3f03 100644 --- a/pre_commit_hooks/util.py +++ b/pre_commit_hooks/util.py @@ -34,5 +34,5 @@ def zsplit(s: str) -> list[str]: def get_template_path(path: str) -> str: - parent_dir = os.path.abspath(os.path.join(os.getcwd(), os.pardir)) + parent_dir = os.path.abspath(os.getcwd()) return os.path.join(parent_dir, 'templates', path)