Search for templates in current dir

Instead of searching in parent directory, search in current directory
only.
This commit is contained in:
David Paz 2022-07-17 10:53:23 +02:00
parent a3aa3be552
commit e7acd0dcf2
No known key found for this signature in database
GPG key ID: 6600CC47B1C1B063

View file

@ -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)