X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fscripts%2Flyxpak.py;h=f3b8078be3a74a425aa92b70a7174c7458982f2e;hb=5cb4e119324dd7346aad7f6cfe94f6c9636c127e;hp=d34197799efdf4d8c2ce27117b3ad6735199c854;hpb=fbcf2486d84b4ea543560cb7f583bc38e6cf67f5;p=lyx.git diff --git a/lib/scripts/lyxpak.py b/lib/scripts/lyxpak.py index d34197799e..f3b8078be3 100755 --- a/lib/scripts/lyxpak.py +++ b/lib/scripts/lyxpak.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python # -*- coding: utf-8 -*- # file lyxpak.py @@ -160,7 +159,7 @@ def gather_files(curfile, incfiles, lyx2lyx): j = 0 while j < len(bibfiles): if os.path.isabs(bibfiles[j]): - file = bibfiles[j] + file = bibfiles[j] + '.bib' else: file = os.path.join(curdir, bibfiles[j] + '.bib') if os.path.exists(file): @@ -174,7 +173,7 @@ def gather_files(curfile, incfiles, lyx2lyx): return 0 -def find_lyx2lyx(progloc): +def find_lyx2lyx(progloc, path): " Find a usable version of the lyx2lyx script. " # first we will see if the script is roughly where we are # i.e., we will assume we are in $SOMEDIR/scripts and look @@ -275,7 +274,7 @@ def main(args): path = string.split(os.environ["PATH"], os.pathsep) if lyx2lyx == None: - lyx2lyx = find_lyx2lyx(ourprog) + lyx2lyx = find_lyx2lyx(ourprog, path) # Initialize the list with the specified LyX file and recursively # gather all required files (also from child documents).