]> git.lyx.org Git - lyx.git/blobdiff - lib/scripts/ext_copy.py
Add a preference option to specify the default length unit (cm or in).
[lyx.git] / lib / scripts / ext_copy.py
index 1d842f9060f0a539d0efe5898fb485c550f768a9..b3ef9ad27de84103d4bd5b868d198b76acc4a0df 100644 (file)
@@ -56,7 +56,10 @@ def main(argv):
     if not os.path.isabs(to_dir):
       error("%s is not an absolute file name.\n%s" % to_dir, usage(progname))
 
-    return copy_all(from_dir, to_dir, exts) != True
+    if not copy_all(from_dir, to_dir, exts):
+      # some kind of failure
+      return 1
+    return 0
 
 
 def copy_all(from_dir, to_dir, exts):
@@ -80,7 +83,7 @@ def copy_all(from_dir, to_dir, exts):
         shutil.copymode(from_file, to_file)
       except:
         pass
-    return 0
+    return True
 
 
 def create_dir(new_dir):