From: Frederic Bron Date: Fri, 25 Jun 2010 20:13:48 +0000 (+0200) Subject: fixed issue 1148: makelsr.py now uses local convert-ly in out/bin if existing X-Git-Tag: release/2.13.26-1~1 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=10ff9807bbdea11545e90bbfb5aa56d21b344f4d;p=lilypond.git fixed issue 1148: makelsr.py now uses local convert-ly in out/bin if existing --- diff --git a/scripts/auxiliar/makelsr.py b/scripts/auxiliar/makelsr.py index 1076f22ded..1c671178d7 100755 --- a/scripts/auxiliar/makelsr.py +++ b/scripts/auxiliar/makelsr.py @@ -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 + '~'):