skip links in tfdoc file list

This commit is contained in:
Ludovico Magnocavallo
2022-02-27 10:36:03 +01:00
parent f3c4a6e098
commit 38518ec7d5

View File

@@ -151,6 +151,8 @@ def parse_files(basepath, exclude_files=None):
'Return a list of File named tuples in root module at basepath.'
exclude_files = exclude_files or []
for name in glob.glob(os.path.join(basepath, '*tf')):
if os.path.islink(name):
continue
shortname = os.path.basename(name)
if shortname in exclude_files:
continue