X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=python%2Flilylib.py;h=43722345932a551150674a65027ae6cc266dcd59;hb=157d98c1870868bf59c1691577444e3c3d533bc4;hp=686993e5d87165b69c131aa33e7b1ca141eb22b8;hpb=7a3c3526e082ada6fefbe564315046a14ecf609c;p=lilypond.git diff --git a/python/lilylib.py b/python/lilylib.py index 686993e5d8..4372234593 100644 --- a/python/lilylib.py +++ b/python/lilylib.py @@ -3,7 +3,7 @@ # # source file of the GNU LilyPond music typesetter # -# (c) 1998--2006 Han-Wen Nienhuys +# (c) 1998--2007 Han-Wen Nienhuys # Jan Nieuwenhuizen import __main__ @@ -24,14 +24,14 @@ import optparse # it as we do with teTeX on Red Hat Linux: set some environment var # (PYTHONPATH) in profile) -# If set, LILYPONDPREFIX must take prevalence -# if datadir is not set, we're doing a build and LILYPONDPREFIX +# 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 ('LILYPONDPREFIX') : - datadir = os.environ['LILYPONDPREFIX'] +if os.environ.has_key ('LILYPOND_DATADIR') : + datadir = os.environ['LILYPOND_DATADIR'] while datadir[-1] == os.sep: datadir= datadir[:-1]