1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-05 15:33:54 +00:00

ensure is_template handles tild properly

This commit is contained in:
deadc0de6
2018-09-26 17:31:29 +02:00
parent 847c135454
commit 12e875a305

View File

@@ -93,6 +93,7 @@ class Templategen:
def is_template(path):
"""recursively check if any file is a template within path"""
path = os.path.expanduser(path)
if not os.path.exists(path):
return False
if os.path.isfile(path):