From: Scott Kostyshak Date: Sat, 7 Jan 2023 14:43:47 +0000 (-0500) Subject: updatelayouts.py: skip .txt files X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=95dd4f6bf63da04a28165fa901ef6c4016e2c898;p=features.git updatelayouts.py: skip .txt files --- diff --git a/development/tools/updatelayouts.py b/development/tools/updatelayouts.py index ad02f8a672..81bf4d6982 100755 --- a/development/tools/updatelayouts.py +++ b/development/tools/updatelayouts.py @@ -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])