]> git.lyx.org Git - lyx.git/blobdiff - lib/scripts/lyxpak.py
Pass parameters by reference (performance)
[lyx.git] / lib / scripts / lyxpak.py
index 77b16faa8fc62173639d3d1fa23c1a21f82d59c6..ed4f20666d5f52a2911d3fb76fc4cc10ad6fd1f6 100755 (executable)
@@ -1,4 +1,3 @@
-#! /usr/bin/env python
 # -*- coding: utf-8 -*-
 
 # file lyxpak.py
@@ -146,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):