]> git.lyx.org Git - features.git/blobdiff - po/lyx_pot.py
po/Makefile.in.in, replace awk scripts with the Python version
[features.git] / po / lyx_pot.py
index 5660e45abd8e5df42f0dcce20d5eac3771b4dc1e..9dc78f0874f86968e4464e0e6909fdae699a3232 100755 (executable)
@@ -23,7 +23,7 @@ def relativePath(path, base):
     '''return relative path from top source dir'''
     # full pathname of path
     path1 = os.path.normpath(os.path.realpath(path)).split(os.sep)
-    path2 = os.path.normpath(base).split(os.sep)
+    path2 = os.path.normpath(os.path.realpath(base)).split(os.sep)
     if path1[:len(path2)] != path2:
         print "Path %s is not under top source directory" % path
     return os.path.join(*path1[len(path2):])