mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Amend 9d8dfe934b
: Check _all_ visited dirs
This commit is contained in:
parent
0aad230154
commit
a379c5d5ea
@ -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 = []
|
||||
|
Loading…
Reference in New Issue
Block a user