Displaying LilyPond’s data directory: Difference between revisions

m Add categories
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).
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
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 [[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.


<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]]