mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 10:16:52 +00:00
Search for templates in current dir
Instead of searching in parent directory, search in current directory only.
This commit is contained in:
parent
a3aa3be552
commit
e7acd0dcf2
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue