From 38518ec7d52afd0d7da223ada8302f4ace116326 Mon Sep 17 00:00:00 2001 From: Ludovico Magnocavallo Date: Sun, 27 Feb 2022 10:36:03 +0100 Subject: [PATCH] skip links in tfdoc file list --- tools/tfdoc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/tfdoc.py b/tools/tfdoc.py index a142d5203..0e847d340 100755 --- a/tools/tfdoc.py +++ b/tools/tfdoc.py @@ -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