gnu-music-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lily 1.3.141 bug with ly2dvi


From: Jan Nieuwenhuizen
Subject: Re: lily 1.3.141 bug with ly2dvi
Date: 22 Mar 2001 12:14:46 +0100
User-agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7

Mats Bengtsson <address@hidden> writes:

> ly2dvi used to set all the necessary environment variables but the
> new version doesn't.

Maybe that's a bug; setting some of these vars could be a feature.
The old code in ly2dvi is a bit hairy though, esp

        #
        # Try to set root and HOME first before calling rcfile
        #
        if os.environ.has_key('LILYPONDPREFIX'):
            this.setRoot(os.environ['LILYPONDPREFIX'], 'environment')
        else:
            p=os.path.split(sys.argv[0])
            p=os.path.split(p[0])
            # bit silly. for ly2dvi, overrules compiled-in datadir...
            # how to do this better (without running lily, of course?
            this.setRoot(os.path.join(p[0],'share','lilypond'), 'init')

        if not os.environ.has_key('HOME'):
            if os.environ.has_key('HOMEDRIVE') and \

also, it didn't set TFMFONTS.  Cleanest would be if ly2dvi would
source lilypond-profile.sh before calling lilypond/latex.  Hmm.

-- 
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org




reply via email to

[Prev in Thread] Current Thread [Next in Thread]