mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
updatelayouts.py: consider citeengines.
This commit is contained in:
parent
5997b60da1
commit
69b03d2545
@ -21,15 +21,18 @@ from layout2layout import main as layout2layout
|
||||
def main(argv):
|
||||
|
||||
toolsdir = os.path.dirname(argv[0])
|
||||
layoutdir = os.path.join(toolsdir, '../../lib/layouts')
|
||||
os.chdir(layoutdir)
|
||||
for i in os.listdir("."):
|
||||
(base, ext) = os.path.splitext(i)
|
||||
if ext == ".old":
|
||||
continue
|
||||
args = ["layout2layout", i + ".old", i]
|
||||
shutil.copy(args[2], args[1])
|
||||
layout2layout(args)
|
||||
dirs = []
|
||||
dirs.append(os.path.join(toolsdir, '../../lib/layouts'))
|
||||
dirs.append(os.path.join(toolsdir, '../../lib/citeengines'))
|
||||
for directory in dirs:
|
||||
os.chdir(directory)
|
||||
for i in os.listdir("."):
|
||||
(base, ext) = os.path.splitext(i)
|
||||
if ext == ".old":
|
||||
continue
|
||||
args = ["layout2layout", i + ".old", i]
|
||||
shutil.copy(args[2], args[1])
|
||||
layout2layout(args)
|
||||
|
||||
return 0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user