1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 17:24:46 +00:00
This commit is contained in:
deadc0de6
2018-09-01 19:45:33 +02:00
parent 092588b961
commit 401c9a2d0c
2 changed files with 4 additions and 4 deletions

View File

@@ -62,10 +62,10 @@ class Installer:
# and then symlink it as any other file
# by udating src and dst
return []
else:
# is not a template
self._link(src, dst)
# is not a template
return self._link(src, dst)
def _link(self, src, dst):
"""set src as a link target of dst"""

View File

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