updatelayouts.py: skip .txt files

This commit is contained in:
Scott Kostyshak 2023-01-07 09:43:47 -05:00
parent 093a86270e
commit 95dd4f6bf6

View File

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