Jump to content

Displaying LilyPond’s data directory: Difference between revisions

From LilyPond wiki
m I changed an apostrophe to curly (typographical) punctuation and clarified where the directory will display.
m Gabriel Ellsworth moved page Displaying LilyPond's data directory to Displaying LilyPond’s data directory: Misspelled title: I changed the tick mark in “LilyPond’s” to curly (typographical) punctuation (a real apostrophe).
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:


<pre>
<pre>
\version "2.24.4"
\version "2.24"
#(display
 
  (string-append "\nThe LilyPond data directory is located at: "
#(ly:message "The LilyPond data directory is located at: ~a" (ly:get-option 'datadir))
                (ly:get-option 'datadir)))
</pre>
</pre>


(Thanks to Mark Knoop for this code.)
(Thanks to Mark Knoop for this code.)


[[Category:Snippet]] [[Category:Scheme]]
[[Category:Snippet]]
[[Category:Scheme]]

Latest revision as of 11:38, 12 June 2026

In Frescobaldi, you can install LilyPond while editing the Settings options. However, it is not always clear what directory LilyPond is installed in.

Using the following code will display LilyPond’s data directory in the LilyPond log.

\version "2.24"

#(ly:message "The LilyPond data directory is located at: ~a" (ly:get-option 'datadir))

(Thanks to Mark Knoop for this code.)