lilypond-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] bib2html: set TEXMFOUTPUT to the tempdir.


From: John Mandereau
Subject: Re: [PATCH] bib2html: set TEXMFOUTPUT to the tempdir.
Date: Wed, 03 Feb 2010 00:07:27 +0100

Hi Patrick,
Le mardi 02 février 2010 à 14:40 -0800, Patrick McCarty a écrit : 
> I need this patch for the latest updates to bibtex in TeX Live 2009 on
> my machine.  LilyPond fails to compile the bibliographies without it.

Thanks for making me aware that I should check out TeXlive updates :-)


> Does the patch look okay?

Instead of (or in addition to) messing up with a temporary directory
that wouldn't be in a directory out* (just like the temporary file the
current version of this script dirtily creates BTW, right?), I'd
recommend changing working dir of bibtex, i.e.

out_dir = os.path.dirname (output)
open (os.path.join (out_dir, tmpfile + '.aux'), 'w').write (r'''

[snip]

cmd = 'cd %s && bibtex %s' % (out_dir, tmpfile)

not including other adjustments w.r.t. out_dir.  Another solution is
setting bib2html working dir to outdir in makefile command line.


> (I'm not very familiar with good/bad practices with respect to Python yet)

It's more a problem of working directories in this case IMHO.

Best,
John

Attachment: signature.asc
Description: Ceci est une partie de message numériquement signée


reply via email to

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