"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/scripts/TeXFiles.py" between
lyx-2.3.4.3.tar.xz and lyx-2.3.4.4.tar.bz2

About: LyX is an advanced document processor that produces high quality, professional output using LaTeX, an industrial strength typesetting engine, in the background.

TeXFiles.py  (lyx-2.3.4.3.tar.xz):TeXFiles.py  (lyx-2.3.4.4.tar.bz2)
skipping to change at line 124 skipping to change at line 124
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() 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 = []
for dir in dirs: for dir in dirs:
st = os.stat(os.path.join(root, dir)) dirname = os.path.join(root, dir)
key = st.st_dev, st.st_ino dirname = os.path.realpath(dirname)
if key not in visited: dirname = os.path.normcase(dirname)
visited.add(key) if dirname not in visited:
visited.add(dirname)
recurse.append(dir) recurse.append(dir)
dirs[:] = recurse dirs[:] = recurse
# check file type # check file type
for file in files: for file in files:
if len(file) > 4 and file[-4:] == file_ext: if len(file) > 4 and file[-4:] == file_ext:
# force the use of / since miktex uses / even under windows # force the use of / since miktex uses / even under windows
print(root.replace('\\', '/') + '/' + file, file=out) print(root.replace('\\', '/') + '/' + file, file=out)
out.close() out.close()
 End of changes. 1 change blocks. 
4 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)