[Twisted-Python] which dia error from lore

Jp Calderone exarkun at divmod.com
Mon Mar 14 11:51:17 EST 2005


On Mon, 14 Mar 2005 10:06:57 -0500, Itamar Shtull-Trauring <itamar at itamarst.org> wrote:
>On Mon, 2005-03-14 at 12:55 +0000, Jp Calderone wrote:
> 
> > > -        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.
> 
> We shouldn't be using "which dia" anyway, it's ugly and broken. Don't we
> have a Python implementation of which() somewhere?
> 

  Yes.  I'd still like to know when this happens, though, as it would seem to indicate a bug in the plugin system or in the way I ported Lore's plugins.

  Jp




More information about the Twisted-Python mailing list