From 95dd4f6bf63da04a28165fa901ef6c4016e2c898 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Sat, 7 Jan 2023 09:43:47 -0500 Subject: [PATCH] updatelayouts.py: skip .txt files --- development/tools/updatelayouts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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])