1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-07 21:29:22 +00:00

adding decorator

This commit is contained in:
deadc0de6
2018-11-15 16:04:45 +01:00
parent 8157ef170f
commit 29f6e89bf5

View File

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