]> git.donarmstrong.com Git - lilypond.git/blobdiff - bin/mf-to-table.in
release: 0.1.54
[lilypond.git] / bin / mf-to-table.in
index 58c96c384bbe0eb211266adada5faec4c025c1b5..08016d8128d8b76f128edbf235d71e19d5d9753e 100755 (executable)
@@ -15,6 +15,22 @@ import regsub
 import os
 import sys
 import time
+
+
+lilypath =''
+try:
+       lilypath = os.environ['LILYPOND_SOURCEDIR'] + '/'
+except KeyError:
+       try:
+               lilypath = os.environ['top_srcdir'] + '/'
+       except KeyError:
+           print 'Please set LILYPOND_SOURCEDIR to the toplevel source, eg LILYPOND_SOURCEDIR=/home/foobar/lilypond-1.2.3/'
+
+           sys.exit(1)
+
+lilypath = lilypath + '/bin/'
+sys.path.append(lilypath)
 from flower import *
 
 begin_autometric_re = regex.compile('@{')