]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/midi2ly.py
use sed-atfiles to put relocation handling in python scripts.
[lilypond.git] / scripts / midi2ly.py
index f1db678cfb3990a50cda7e70925bcdb65e9d1fcb..35b10f39874a9dd3f5d561c07d92928d9b02e87d 100644 (file)
@@ -25,26 +25,15 @@ import os
 import string
 import sys
 
-################################################################
-# Users of python modules should include this snippet.
-#
-
-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 midi
 import lilylib as ly
 
 ################################################################
-################ CONSTANTS
+## CONSTANTS
 
 
 output_name = ''