]> git.donarmstrong.com Git - lilypond.git/commitdiff
fixed issue 1148: makelsr.py now uses local convert-ly in out/bin if existing
authorFrederic Bron <frederic.bron@m4x.org>
Fri, 25 Jun 2010 20:13:48 +0000 (22:13 +0200)
committerGraham Percival <graham@percival-music.ca>
Sat, 26 Jun 2010 05:11:31 +0000 (06:11 +0100)
scripts/auxiliar/makelsr.py

index 1076f22ded67309bc54be1730a03b7c25790dca2..1c671178d76b8c60c505a1d6f6d681512dd8a54a 100755 (executable)
@@ -59,6 +59,14 @@ if len (sys.argv) >= 2:
 else:
     in_dir = ''
 
+# which convert-ly to use
+if os.path.isfile("out/bin/convert-ly"):
+    conv_path='out/bin/'
+else:
+    conv_path=''
+convert_ly=conv_path+'convert-ly'
+print 'using '+convert_ly
+
 unsafe = []
 unconverted = []
 notags_files = []
@@ -140,7 +148,7 @@ def copy_ly (srcdir, name, tags):
     s = strip_white_spaces_re.sub ('', s)
     open (dest, 'w').write (s)
 
-    e = os.system ("convert-ly -e '%s'" % dest)
+    e = os.system (convert_ly+(" -e '%s'" % dest))
     if e:
         unconverted.append (dest)
     if os.path.exists (dest + '~'):