]> git.lyx.org Git - lyx.git/commitdiff
updatelayouts.py: skip .txt files
authorScott Kostyshak <skostysh@lyx.org>
Sat, 7 Jan 2023 14:43:47 +0000 (09:43 -0500)
committerScott Kostyshak <skostysh@lyx.org>
Sat, 7 Jan 2023 14:43:47 +0000 (09:43 -0500)
development/tools/updatelayouts.py

index ad02f8a672d88835e821b5467b96ab982fcf60d6..81bf4d6982458c14f59281072d82f4858ebc0735 100755 (executable)
@@ -29,7 +29,8 @@ def main(argv):
         os.chdir(directory)
         for i in os.listdir("."):
             (base, ext) = os.path.splitext(i)
-            if ext == ".old":
+            # Skip files like lib/layouts/TODO.txt
+            if ext in [ ".old", ".txt" ]:
                 continue
             args = ["layout2layout", i + ".old", i]
             shutil.copy(args[2], args[1])