mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 05:37:11 +00:00
po/lyx_pot.py: relativePath(): replace all \ by / such that we get the
same comments on Windows and *nix git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17820 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
bc448a7ef5
commit
d738448c2d
@ -25,7 +25,10 @@ def relativePath(path, base):
|
|||||||
path2 = os.path.normpath(os.path.realpath(base)).split(os.sep)
|
path2 = os.path.normpath(os.path.realpath(base)).split(os.sep)
|
||||||
if path1[:len(path2)] != path2:
|
if path1[:len(path2)] != path2:
|
||||||
print "Path %s is not under top source directory" % path
|
print "Path %s is not under top source directory" % path
|
||||||
return os.path.join(*path1[len(path2):])
|
path3 = os.path.join(*path1[len(path2):]);
|
||||||
|
# replace all \ by / such that we get the same comments on Windows and *nix
|
||||||
|
path3 = path3.replace('\\', '/')
|
||||||
|
return path3
|
||||||
|
|
||||||
|
|
||||||
def ui_l10n(input_files, output, base):
|
def ui_l10n(input_files, output, base):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user