-# -*- coding: utf-8 -*-
-
# file TeXFiles.py
# This file is part of LyX, the document processor.
# Licence details can be found in the file COPYING.
# relies on python and kpsewhich (no shell command is used).
#
-from __future__ import print_function
import os, sys, re
cls_stylefile = 'clsFiles.lst'
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 = []