]> git.donarmstrong.com Git - lilypond.git/commitdiff
Python lilylib: remove path insertion of @lilypond_datadir@/python
authorJohn Mandereau <john.mandereau@gmail.com>
Tue, 11 Nov 2008 15:57:55 +0000 (16:57 +0100)
committerJohn Mandereau <john.mandereau@gmail.com>
Tue, 11 Nov 2008 15:57:55 +0000 (16:57 +0100)
The removed line was not necessary for installed Python scripts, which
sets Python path through the relocation preamble, and it wrongly made
non-installed scripts try to load installed Python modules instead of
modules in $(top-build-dir)/python/$(outconfbase).

python/lilylib.py

index 27dd98deabeea5ee439f538467a2065a537c37cb..34174e12666b34afc37e03d777ffd5d17cf83a27 100644 (file)
@@ -34,9 +34,6 @@ if os.environ.has_key ('LILYPOND_DATADIR') :
     while datadir[-1] == os.sep:
        datadir= datadir[:-1]
 
-sys.path.insert (0, os.path.join (datadir, 'python'))
-
-
 # Python 2.5 only accepts strings with proper Python internal encoding
 # (i.e. ASCII or Unicode) when writing to stdout/stderr, so we must
 # use ugettext iso gettext, and encode the string when writing to