]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/convert-ly.py
use sed-atfiles to put relocation handling in python scripts.
[lilypond.git] / scripts / convert-ly.py
index 474144c3ce081d16b3f45f67e1a0aa0a52d53ff3..cf67f9f2400d0fbdb42ecf2d08299c5f283648fd 100644 (file)
@@ -15,18 +15,9 @@ import sys
 import string
 import re
 
-
-datadir = '@local_lilypond_datadir@'
-if not os.path.isdir (datadir):
-    datadir = '@lilypond_datadir@'
-
-sys.path.insert (0, os.path.join (datadir, '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._