]> git.lyx.org Git - lyx.git/blobdiff - lib/scripts/lyxpak.py
Pass parameters by reference (performance)
[lyx.git] / lib / scripts / lyxpak.py
index f3b8078be3a74a425aa92b70a7174c7458982f2e..ed4f20666d5f52a2911d3fb76fc4cc10ad6fd1f6 100755 (executable)
@@ -145,6 +145,8 @@ def gather_files(curfile, incfiles, lyx2lyx):
         match = re_options.match(lines[i])
         if match:
             file = match.group(3).strip('"')
+            if file.startswith("bibtotoc,"):
+                file = file[9:]
             if not os.path.isabs(file):
                 file = os.path.join(curdir, file + '.bst')
             if os.path.exists(file):