load AUTHOR_DATA via path convention

This commit is contained in:
tux 2024-11-27 20:28:57 +01:00
parent 47bb7991b8
commit 487bf457fb
2 changed files with 3 additions and 3 deletions

View File

@ -5,6 +5,9 @@
(load (string-append scmdir "json_parser.scm")) (load (string-append scmdir "json_parser.scm"))
(load (string-append scmdir "resolve_inherits.scm")) (load (string-append scmdir "resolve_inherits.scm"))
(load (string-append scmdir "yaml_parser.scm")))) (load (string-append scmdir "yaml_parser.scm"))))
#(define AUTHOR_DATA (if (defined? 'AUTHOR_DATA) AUTHOR_DATA (parse-yml-file "../../lilypond-song-includes/data/authors.yml")))
#(define SONG_DATA (if (defined? 'SONG_DATA) SONG_DATA (parse-yml-file "../../lilypond-song-includes/data/songs.yml")))
\include "basic_format_and_style_settings.ly" \include "basic_format_and_style_settings.ly"
\include "eps_file_from_song_dir.ly" \include "eps_file_from_song_dir.ly"
\include "title_with_category_images.ly" \include "title_with_category_images.ly"

View File

@ -3,6 +3,3 @@
#(define noDefaultOutput (if (defined? 'noDefaultOutput) noDefaultOutput #f)) #(define noDefaultOutput (if (defined? 'noDefaultOutput) noDefaultOutput #f))
\include #(if noDefaultOutput "void.ly" "all_base_includes.ly") \include #(if noDefaultOutput "void.ly" "all_base_includes.ly")
#(define AUTHOR_DATA (if (defined? 'AUTHOR_DATA) AUTHOR_DATA (parse-yml-file "../data/authors.yml")))
#(define SONG_DATA (if (defined? 'SONG_DATA) SONG_DATA (parse-yml-file "../data/songs.yml")))