On 20/11/16 15:44, Noeck wrote:
Hi

I tried this now as a top level scheme construct,

#(if (file-exists? "somepath.ily") (#{
          \include "somepath.ily"
 #}))

But lilypond does not like it. Do I need a scheme function (even without
arguments)? Is including inside scheme possible?

I fear that any solution is probably more complex than just writing:

% For a stand alone version remove these lines ...
...
% ... until here.

and leave it to the user to care about it.

Thanks also for the suggestion of processing scripts around, but that's
not the question. I have them. I just wanted the score to be compilable
without.

Cheers,
Joram



How about something like this?


(if (access? "somepath.ily" R_OK)
   (ly:parser-include-string "\\include \"somepath.ily\""))

Tim Lanfear






_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to