[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding files in include paths

From: Han-Wen Nienhuys
Subject: Re: Finding files in include paths
Date: Mon, 20 Jan 2020 10:34:28 +0100

I documented it in

you could add a scheme callback similar to ly:source-file, eg.
ly:source-find to do the equivalent of kpsewhich

On Mon, Jan 20, 2020 at 9:22 AM Urs Liska <address@hidden> wrote:

> Hi all,
> how/where is the file searchign with LilyPond's search path is
> implemented?
> If I write
>   \include "a/relative/path"
> the given path is searched for relative to all search paths known to
> LilyPond.
> Is there a way to do the same in Scheme, say
>   (file-visible-to-lilypond "a/relative/path")
> to determine whether a target can be found within any LilyPond search
> path? Probably the function should return the absolut path, similar to
> what kpsewhich does.
> I need that to check whether a certain file is present (and then open
> it) without knowing the absolute location.
> Urs

Han-Wen Nienhuys - address@hidden -

reply via email to

[Prev in Thread] Current Thread [Next in Thread]