[LyX/master] Account for Windows paths (#11975)
Juergen Spitzmueller
spitz at lyx.org
Thu Sep 17 04:50:57 UTC 2020
commit cfc3b3675b4091c321a1a95e0d1ac63c41bb60e1
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Thu Sep 17 07:17:36 2020 +0200
Account for Windows paths (#11975)
---
po/lyx_pot.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/po/lyx_pot.py b/po/lyx_pot.py
index cbe4b8f..4e15b1f 100755
--- a/po/lyx_pot.py
+++ b/po/lyx_pot.py
@@ -639,7 +639,7 @@ def parseExamplesTemplates(file, seen, output):
for sfile in glob.glob( os.path.join(file, '*') ):
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 filename[-4:] != ".lyx":
return
@@ -659,7 +659,7 @@ def tabletemplates_l10n(input_files, output, base):
# only record each item once
seen = []
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 filename[-4:] != ".lyx":
continue
More information about the lyx-cvs
mailing list