From f6153d41176456e7f625b9fbe314ce072c7cce19 Mon Sep 17 00:00:00 2001 From: John Mandereau Date: Tue, 11 Nov 2008 16:57:55 +0100 Subject: [PATCH] Python lilylib: remove path insertion of @lilypond_datadir@/python 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 | 3 --- 1 file changed, 3 deletions(-) diff --git a/python/lilylib.py b/python/lilylib.py index 27dd98deab..34174e1266 100644 --- a/python/lilylib.py +++ b/python/lilylib.py @@ -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 -- 2.39.5