From 12e875a3056f553f43583b1ee14d5bbe1cbb1114 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Wed, 26 Sep 2018 17:31:29 +0200 Subject: [PATCH] ensure is_template handles tild properly --- dotdrop/templategen.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dotdrop/templategen.py b/dotdrop/templategen.py index 06138d3..5a0c5e5 100644 --- a/dotdrop/templategen.py +++ b/dotdrop/templategen.py @@ -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):