]> git.lyx.org Git - features.git/blobdiff - lib/lyx2lyx/lyx2lyx
lyx2lyx is now a frontend to the LyX module.
[features.git] / lib / lyx2lyx / lyx2lyx
index f7a7ee6cf797df922b4bf76604316921137235d5..162c348e05913c9fa521fa6a27a925a7cdc08d4c 100755 (executable)
@@ -75,15 +75,9 @@ def parse_options(argv):
 
 def main(argv):
     end_format, input, output, error, debug = parse_options(argv)
-    file = LyX.FileInfo(end_format, input, output, error, debug)
-
-    mode, convertion_chain = file.chain()
-    file.warning("convertion chain: " + str(convertion_chain), 3)
-
-    for step in convertion_chain:
-        convert = getattr(__import__("lyx_" + step), mode)
-        convert(file)
+    file = LyX.File(end_format, input, output, error, debug)
 
+    file.convert()
     file.write()
 
 if __name__ == "__main__":