mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +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
|
file_ext = '.' + type
|
||||||
out = open(outfile, 'w')
|
out = open(outfile, 'w')
|
||||||
|
visited = set()
|
||||||
for dir in dirs.split(path_sep):
|
for dir in dirs.split(path_sep):
|
||||||
# for each valid directory
|
# for each valid directory
|
||||||
if not os.path.isdir(dir):
|
if not os.path.isdir(dir):
|
||||||
continue
|
continue
|
||||||
# walk down the file hierarchy
|
# walk down the file hierarchy
|
||||||
visited = set()
|
|
||||||
for root,dirs,files in os.walk(dir, followlinks=True):
|
for root,dirs,files in os.walk(dir, followlinks=True):
|
||||||
# prevent inifinite recursion
|
# prevent inifinite recursion
|
||||||
recurse = []
|
recurse = []
|
||||||
|
Loading…
Reference in New Issue
Block a user