From: John Mandereau Date: Wed, 12 Nov 2008 10:20:02 +0000 (+0100) Subject: Trim lilylib.py datadir stuff X-Git-Tag: release/2.11.64-1~42 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=1b33373833dcc4443fdfcd6cf7348d2b680ccc9c;p=lilypond.git Trim lilylib.py datadir stuff --- 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