Use the normalized path for checking whether it has already been gathered.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39691 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2011-09-16 12:03:54 +00:00
parent 517cfe9266
commit 45aa989efc

View File

@ -121,7 +121,7 @@ def gather_files(curfile, incfiles, lyx2lyx):
file = file + ext
file_exists = True
break
if file_exists and not file in incfiles:
if file_exists and not abspath(file) in incfiles:
incfiles.append(abspath(file))
if recursive:
gather_files(file, incfiles, lyx2lyx)