Follow symlinks when assembling the templates

This commit is contained in:
Pim van Pelt
2023-05-31 15:30:40 +00:00
parent 4c3d92008f
commit 8a64c5594a
120 changed files with 1373 additions and 1 deletions

View File

@ -80,7 +80,7 @@ def find(file_or_dir_list):
if os.path.isfile(e):
ret[e] = tpl2fn(e, e)
elif os.path.isdir(e):
for root, dirnames, filenames in os.walk(e):
for root, dirnames, filenames in os.walk(e, followlinks=True):
for filename in filenames:
if filename.startswith("_"):
continue