]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/abc2ly.py
use sed-atfiles to put relocation handling in python scripts.
[lilypond.git] / scripts / abc2ly.py
index 9c697367b4fc020b285ad137cae64deeff5ab213..570846c4ac40bbda4ebee33a5874be19eb82e974 100644 (file)
@@ -78,16 +78,9 @@ import os
 program_name = sys.argv[0]
 
 
-for d in ['@lilypond_datadir@',
-          '@lilypond_libdir@']:
-    sys.path.insert (0, os.path.join (d, 'python'))
-
-# dynamic relocation, for GUB binaries.
-bindir = os.path.abspath (os.path.split (sys.argv[0])[0])
-for p in ['share', 'lib']:
-    datadir = os.path.abspath (bindir + '/../%s/lilypond/current/python/' % p)
-    sys.path.insert (0, datadir)
-
+"""
+@relocate-preamble@
+"""
 
 import lilylib as ly
 global _;_=ly._
@@ -1179,7 +1172,7 @@ def try_parse_bar (str,state):
         close_beam_state(state)
         voices_append (bs)
         if do_curly != '':
-            voices_append("} }")
+            voices_append("} ")
             do_curly = ''
     return str