diff --git a/dotdrop/templategen.py b/dotdrop/templategen.py index a131961..85d1f45 100644 --- a/dotdrop/templategen.py +++ b/dotdrop/templategen.py @@ -92,7 +92,7 @@ class Templategen: return data.decode('utf-8', 'replace') def is_template(path): - if not os.path.exists(path): + if not os.path.isfile(path): return False with open(path, 'r') as f: data = f.read()