[LyX/master] Amend 9d8dfe934ba: Check _all_ visited dirs
Kornel Benko
kornel at lyx.org
Thu Jun 2 09:39:12 UTC 2022
commit a379c5d5ea35430c205b430ad1d89516ba371487
Author: Kornel Benko <kornel at lyx.org>
Date: Thu Jun 2 12:16:07 2022 +0200
Amend 9d8dfe934ba: Check _all_ visited dirs
---
lib/scripts/TeXFiles.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/scripts/TeXFiles.py b/lib/scripts/TeXFiles.py
index 16b7df2..a5787ea 100755
--- a/lib/scripts/TeXFiles.py
+++ b/lib/scripts/TeXFiles.py
@@ -111,12 +111,12 @@ for type in types:
file_ext = '.' + type
out = open(outfile, 'w')
+ visited = set()
for dir in dirs.split(path_sep):
# for each valid directory
if not os.path.isdir(dir):
continue
# walk down the file hierarchy
- visited = set()
for root,dirs,files in os.walk(dir, followlinks=True):
# prevent inifinite recursion
recurse = []
More information about the lyx-cvs
mailing list