Am 02.02.2015 um 18:46 schrieb MarcM:
i don't have the complete answer but just to get you started.
May be this will help.

currentWorkingDir.ly
<http://lilypond.1069038.n5.nabble.com/file/n171344/currentWorkingDir.ly>



unfortunately this doesn't help, it will only print the directory of the file that is *compiled*, and not that of the currently parsed (i.e. included) one.

But this kicked me to turn a half-baked workaround into a generic solution. It's surprisingly simple (see attached) :-)

Urs


--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Get-current-file-tp171234p171344.html
Sent from the User mailing list archive at Nabble.com.

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user



--
Urs Liska
www.openlilylib.org
\version "2.19.16"

\include "definition.ly"

#(display #{ \thisFile #})
\version "2.19.16"

thisFile =
#(define-scheme-function (parser location)()
   (car (ly:input-file-line-char-column location)))

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to