From 29f6e89bf54e32591a7f136640166b5e955b76c6 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Thu, 15 Nov 2018 16:04:45 +0100 Subject: [PATCH] adding decorator --- dotdrop/templategen.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dotdrop/templategen.py b/dotdrop/templategen.py index 676e00f..1cae5fa 100644 --- a/dotdrop/templategen.py +++ b/dotdrop/templategen.py @@ -93,6 +93,7 @@ class Templategen: data = f.read() return data.decode('utf-8', 'replace') + @staticmethod def is_template(path): """recursively check if any file is a template within path""" path = os.path.expanduser(path) @@ -113,6 +114,7 @@ class Templategen: return True return False + @staticmethod def _is_template(path): """test if file pointed by path is a template""" if not os.path.isfile(path):