On 2009-05-02, rgheck wrote: > Kornel Benko wrote: >> Am Samstag 02 Mai 2009 schrieb rgheck: >>> Jürgen Spitzmüller wrote:
> That said, solving this problem is basically trivial. eLyXer need do > nothing more than call lyx2lyx on the input file with the right > arguments to get the format it wants. This would become even easier if LyX would install lyx2lyx as a normal Python package. > You don't have to integrate the programs to do this. In *nix, it's as > simple as a two-line shell script. There is no need to go via the shell to combine two Python programs. If lyx2lyx were a package in the PYTHONPATH, something like import lyx2lyx.LyX doc = lyx2lyx.LyX.File(input = args[0], dest=elyxer_format) doc.convert() should do. It should be mentioned that (AFAIK), lyx2lyx works (and can be installed) independent of LyX. At least I could successfully use a lyx2lyx from trunk to import "1.6" documents with 1.5.4. Günter