]> git.donarmstrong.com Git - lilypond.git/blobdiff - bin/mf-deps.in
release: 0.1.54
[lilypond.git] / bin / mf-deps.in
index 3483cfc9e97a7881953109e51c0300db1e0db5f9..b259b59748cb5e37c2699737e9db038b52f71320 100755 (executable)
@@ -1,4 +1,5 @@
 #!@PYTHON@
+# -*- python -*-
 
 # 
 # mf-deps.py -- dependencies for metafont 
 
 """
 
+import sys
+import os
+
+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 regex import * ;
 from regsub import * ;
 import sys;