mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-10 20:49:17 +00:00
ensure is_template handles tild properly
This commit is contained in:
@@ -93,6 +93,7 @@ class Templategen:
|
|||||||
|
|
||||||
def is_template(path):
|
def is_template(path):
|
||||||
"""recursively check if any file is a template within path"""
|
"""recursively check if any file is a template within path"""
|
||||||
|
path = os.path.expanduser(path)
|
||||||
if not os.path.exists(path):
|
if not os.path.exists(path):
|
||||||
return False
|
return False
|
||||||
if os.path.isfile(path):
|
if os.path.isfile(path):
|
||||||
|
|||||||
Reference in New Issue
Block a user