]> git.lyx.org Git - lyx.git/blobdiff - development/scons/scons_utils.py
TOC Widget beautification by Stefan Schimanski:
[lyx.git] / development / scons / scons_utils.py
index 4deef5eb132e0316df51c4472097569fd2e6eb61..1e3d6acaefabd28b2b9344312acb74bb55018737 100644 (file)
@@ -153,8 +153,9 @@ def env_potfiles(target, source, env):
     potfiles = []
     trans = re.compile('_\(".*"\)', re.M)
     for file in source:
-        if str(file) not in potfiles and trans.search(open(str(file)).read()):
-            potfiles.append(relativePath(str(file), env.subst('$TOP_SRCDIR')))
+        rel_file = relativePath(str(file), env.subst('$TOP_SRCDIR'))
+        if rel_file not in potfiles and trans.search(open(str(file)).read()):
+            potfiles.append(rel_file)
     potfiles.sort()
     print >> target_file, '\n'.join(potfiles)
     target_file.close()