mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Account for Windows paths (#11975)
This commit is contained in:
parent
b96b876403
commit
cfc3b3675b
@ -639,7 +639,7 @@ def parseExamplesTemplates(file, seen, output):
|
|||||||
for sfile in glob.glob( os.path.join(file, '*') ):
|
for sfile in glob.glob( os.path.join(file, '*') ):
|
||||||
parseExamplesTemplates(sfile, seen, output)
|
parseExamplesTemplates(sfile, seen, output)
|
||||||
|
|
||||||
filename = file.split(os.sep)[-1]
|
filename = os.path.normpath(os.path.realpath(file)).split(os.sep)[-1]
|
||||||
if os.path.isfile(file):
|
if os.path.isfile(file):
|
||||||
if filename[-4:] != ".lyx":
|
if filename[-4:] != ".lyx":
|
||||||
return
|
return
|
||||||
@ -659,7 +659,7 @@ def tabletemplates_l10n(input_files, output, base):
|
|||||||
# only record each item once
|
# only record each item once
|
||||||
seen = []
|
seen = []
|
||||||
for file in input_files:
|
for file in input_files:
|
||||||
filename = file.split(os.sep)[-1]
|
filename = os.path.normpath(os.path.realpath(file)).split(os.sep)[-1]
|
||||||
if os.path.isfile(file):
|
if os.path.isfile(file):
|
||||||
if filename[-4:] != ".lyx":
|
if filename[-4:] != ".lyx":
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user