[Twisted-Python] which dia error from lore

Jp Calderone exarkun at divmod.com
Mon Mar 14 05:55:04 MST 2005


On Mon, 14 Mar 2005 01:05:18 +0100, Andrea Arcangeli <andrea at cpushare.com> wrote:
>mktap is spawning an error (which dia not found), this fixed it
> 
> Index: Twisted/twisted/lore/latex.py
> ===================================================================
> --- Twisted/twisted/lore/latex.py	(revision 13178)
> +++ Twisted/twisted/lore/latex.py	(working copy)
> @@ -104,7 +104,7 @@
>  
>      baseLevel = 0
>      try:
> -        diaHack = not not os.popen('which dia').read()
> +        diaHack = not not os.popen('which dia 2>/dev/null').read()
>      except:
>          # That's a no, then.
>          diaHack = 0

  When does this happen, exactly?  I don't have dia installed, either, and I'm not seeing any mktap output related to it.

  Jp




More information about the Twisted-Python mailing list