Jump to content

Displaying LilyPond's data directory: Difference between revisions

From LilyPond wiki
m Add categories
m I changed an apostrophe to curly (typographical) punctuation and clarified where the directory will display.
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>

Revision as of 14:33, 19 February 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.4"
#(display
  (string-append "\nThe LilyPond data directory is located at: "
                 (ly:get-option 'datadir)))

(Thanks to Mark Knoop for this code.)