TEXMFOUTPUT Normally, TeX puts its output files in
> the current directory. If any output file cannot be
> opened there, it tries to open it in the directory
> specified in the environment variable TEXM- FOUTPUT.
> There is no default value for that variable. For
> example, if you say tex paper and the current directory
> is not writable, if TEXMFOUTPUT has the value /tmp, TeX
> attempts to create /tmp/paper.log (and /tmp/paper.dvi, if
> any output is produced.)
Hmm, that looks familiar -- I think I did come across that. But this
will be a bit of a pain to set from matplotlib, since we are making
calls to os.popen. We might have to do something like
os.popen('export TEXMFOUTPUT=/some/path; run some command')
and then deal with platform and shell dependent differences in how to
set environment variables. Is there a better way? Me thinks it is
better to make this a FAQ and advise people working in non-writable
dirs to set this var themselves.
Thanks for the help...