From c87c5ee46a2178e97db757895c0d4ff4657a9a11 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Tue, 8 Feb 2011 00:13:32 +0000 Subject: [PATCH] Fix up some comments, and change the recursive call to match the new signature. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37559 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/scripts/lyxpak.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/scripts/lyxpak.py b/lib/scripts/lyxpak.py index 07737249fe..d9e6176399 100755 --- a/lib/scripts/lyxpak.py +++ b/lib/scripts/lyxpak.py @@ -123,7 +123,7 @@ def gather_files(curfile, incfiles, lyx2lyx): if file_exists: incfiles.append(abspath(file)) if recursive: - gather_files(file, incfiles) + gather_files(file, incfiles, lyx2lyx) i += 1 continue @@ -164,6 +164,7 @@ def gather_files(curfile, incfiles, lyx2lyx): def find_lyx2lyx(progloc): + " 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 # for $SOMEDIR/lyx2lyx/lyx2lyx. @@ -252,7 +253,6 @@ def main(args): else: import tarfile - # Create a tar archive on *nix and a zip archive on Windows ar_ext = ".tar.gz" if makezip: ar_ext = ".zip" @@ -263,7 +263,6 @@ def main(args): path = string.split(os.environ["PATH"], os.pathsep) - # Try to find the location of the lyx2lyx script if lyx2lyx == None: lyx2lyx = find_lyx2lyx(ourprog) -- 2.39.2