mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-12 19:50:18 +00:00
fix bugs
This commit is contained in:
@@ -62,10 +62,10 @@ class Installer:
|
|||||||
|
|
||||||
# and then symlink it as any other file
|
# and then symlink it as any other file
|
||||||
# by udating src and dst
|
# by udating src and dst
|
||||||
|
return []
|
||||||
|
|
||||||
else:
|
# is not a template
|
||||||
# is not a template
|
return self._link(src, dst)
|
||||||
self._link(src, dst)
|
|
||||||
|
|
||||||
def _link(self, src, dst):
|
def _link(self, src, dst):
|
||||||
"""set src as a link target of dst"""
|
"""set src as a link target of dst"""
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ class Templategen:
|
|||||||
return data.decode('utf-8', 'replace')
|
return data.decode('utf-8', 'replace')
|
||||||
|
|
||||||
def is_template(path):
|
def is_template(path):
|
||||||
if not os.path.exists(path):
|
if not os.path.isfile(path):
|
||||||
return False
|
return False
|
||||||
with open(path, 'r') as f:
|
with open(path, 'r') as f:
|
||||||
data = f.read()
|
data = f.read()
|
||||||
|
|||||||
Reference in New Issue
Block a user