On 11/27/2012 12:24 AM, Guy Rutenberg wrote:
Hi,

Did anybody had time to review this patch? It's quite simple: 3 added lines.

Would it be more helpful if I file a bug report in the trac? I've sent the patch directly to the mailing list per the instructions in the development FAQ.

Sorry, I was waiting for the original author to have a look, though he's apparently not watching the list closely at the moment. But now that I look, it seems it was my mistake... a cut and paste error at 495558b5. Odd that it hadn't show up before. Can you please verify that the attached patch fixes the problem?

Richard

diff --git a/lib/scripts/lyxpak.py b/lib/scripts/lyxpak.py
index 4d10cb6..77b16fa 100755
--- a/lib/scripts/lyxpak.py
+++ b/lib/scripts/lyxpak.py
@@ -174,7 +174,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 +275,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).

Reply via email to