Mats Bengtsson <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org


_______________________________________________
Gnu-music-discuss mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/gnu-music-discuss

Reply via email to