From 1b33373833dcc4443fdfcd6cf7348d2b680ccc9c Mon Sep 17 00:00:00 2001 From: John Mandereau Date: Wed, 12 Nov 2008 11:20:02 +0100 Subject: [PATCH] Trim lilylib.py datadir stuff --- python/lilylib.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/python/lilylib.py b/python/lilylib.py index 34174e1266..f731dec17b 100644 --- a/python/lilylib.py +++ b/python/lilylib.py @@ -18,21 +18,6 @@ import optparse # Users of python modules should include this snippet # and customize variables below. -# We'll suffer this path init stuff as long as we don't install our -# python packages in /lib/pythonx.y (and don't kludge around -# it as we do with teTeX on Red Hat Linux: set some environment var -# (PYTHONPATH) in profile) - -# If set, LILYPOND_DATADIR must take prevalence -# if datadir is not set, we're doing a build and LILYPOND_DATADIR - -datadir = '@local_lilypond_datadir@' -if not os.path.isdir (datadir): - datadir = '@lilypond_datadir@' -if os.environ.has_key ('LILYPOND_DATADIR') : - datadir = os.environ['LILYPOND_DATADIR'] - while datadir[-1] == os.sep: - datadir= datadir[:-1] # Python 2.5 only accepts strings with proper Python internal encoding # (i.e. ASCII or Unicode) when writing to stdout/stderr, so we must -- 2.39.2