One thing I've used in the past for this sort of thing are Scheme functions, specifically file-exists? . https://www.gnu.org/software/mit-scheme/documentation/mit-scheme-ref/File-Manipulation.html Another solution is to use some sort of top-level compilation script in bash or python, which is how i manage style sheets for large scores (I generate temporary ly files on the fly). Happy hacking!~Mike
Sent from my Samsung Galaxy smartphone. -------- Original message --------From: Noeck <noeck.marb...@gmx.de> Date: 11/19/16 11:50 AM (GMT+02:00) To: lilypond-user <lilypond-user@gnu.org> Subject: try except in lilypond Hi, is there something like try ... except in lilypond. What I want to achieve is some failure tolerance in ly files. I want to load some fonts or include files and if they don't exist, it should just be skipped without stopping the compilation (perhaps a warning could be printed). Is that possible? I think I remember that some 'if then else' syntax is not available. This thing probably even less. Best, Joram _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user