]> git.lyx.org Git - lyx.git/blobdiff - lib/scripts/ext_copy.py
The way this was previously, it had to fail if the GUI language
[lyx.git] / lib / scripts / ext_copy.py
index 1d842f9060f0a539d0efe5898fb485c550f768a9..fb70d7bbba316b0b89df69c369eade191730eeec 100644 (file)
@@ -1,4 +1,3 @@
-#! /usr/bin/env python
 # -*- coding: utf-8 -*-
 
 # file ext_copy.py
@@ -56,7 +55,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 +82,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):