Am Mittwoch, dem 11.06.2025 um 19:20 +0200 schrieb mkri...@me.com: > I then tried to test your script but had no luck. I replaced my > altered module with the original module, placed your file in the > script folder. And then started LyX 2.5. Apparently nothing happened > and I got my original error messages again. I also made sure the > script was executable. Then I tried to convert my module file using > your script in a shell (as described in the customization manual). It > did not work either but I got the following error messages: > > ~/Desktop/LyX_2.5.app/Contents/Resources/scripts/layout2layout.py > addons-theorems.old addons-theorems.module > /Users/marcus/Desktop/LyX_2.5.app/Contents/Resources/scripts/layout2l > ayout.py: line 12: currentFormat: command not found > /Users/marcus/Desktop/LyX_2.5.app/Contents/Resources/scripts/layout2l > ayout.py: line 379: import: command not found > /Users/marcus/Desktop/LyX_2.5.app/Contents/Resources/scripts/layout2l > ayout.py: line 380: import: command not found > /Users/marcus/Desktop/LyX_2.5.app/Contents/Resources/scripts/layout2l > ayout.py: line 383: syntax error near unexpected token `(' > /Users/marcus/Desktop/LyX_2.5.app/Contents/Resources/scripts/layout2l > ayout.py: line 383: `def error(message):' > > I do think that the idea of enhancing layout2layout.py is great. > Sorry for not be able to test it.
Maybe you can just send me the original version of your custom module to test it myself. -- Jürgen -- lyx-devel mailing list lyx-devel@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-devel