[texworks] New version 302/303

T T t34www at googlemail.com
Thu Jun 4 20:29:49 CEST 2009

On 04/06/2009, Jonathan Kew <jfkthame at googlemail.com> wrote:
> As for adding the PATH, I don't think this should be necessary anyway,
> as the current $PATH is supposed to be searched automatically in
> addition to the explicitly-listed binary paths. (See
> TeXDocument::typeset(). It first prepends the TeXworks binpaths to the
> PATH in the environment, and then uses the new PATH to actually look
> for the tools, as well as passing this modified PATH to the tool that
> gets executed.)

I looked through the code of TeXDocument::typeset() and indeed the
PATH should be searched as you describe even without explicitly adding
it. However, I just tested this (rev.295) and tools are found on PATH
*only* if binpaths setting in prefrences dialog is not empty (it can
be any junk, like temp dir). I have no idea why this happens, I don't
see anything in the code that could cause this.



More information about the texworks mailing list