]> git.lyx.org Git - features.git/commitdiff
Fix up some comments, and change the recursive call to match the new
authorRichard Heck <rgheck@comcast.net>
Tue, 8 Feb 2011 00:13:32 +0000 (00:13 +0000)
committerRichard Heck <rgheck@comcast.net>
Tue, 8 Feb 2011 00:13:32 +0000 (00:13 +0000)
signature.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37559 a592a061-630c-0410-9148-cb99ea01b6c8

lib/scripts/lyxpak.py

index 07737249fed75abbe0ec3ac58df83129e8ae6ebc..d9e6176399c9340f5c356be3dfc78c318fa20084 100755 (executable)
@@ -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)