mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
updatelayouts.py: skip .txt files
This commit is contained in:
parent
093a86270e
commit
95dd4f6bf6
@ -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])
|
||||||
|
Loading…
Reference in New Issue
Block a user