2009/4/11 Esteve Fernandez <est...@sindominio.net>:
> On Saturday 11 April 2009 19:42:31 Jean-Paul Calderone wrote:
>> They can be imported from "twisted.plugins".  For example, if you name your
>> "dropin" file foo_plugins.py, then "from twisted.plugins import
>> foo_plugins" should work and let you test any code that is part of your
>> plugin definitions. Note that you should try to keep the amount of code and
>> dependencies in a dropin file to a minimum, since this must all be loaded
>> and executed whenever a search for any plugin is performed.
>
> Shouldn't twisted and twisted/plugins be non-importable? I thought twisted and
> twisted/plugins must not have __init__.py files in order for the plugin
> system to be able to find them (through getPlugins). Or did that behavior
> change in recent versions?
>
> Cheers.

It's working on 8.2.0 release, I have been able to port all my tests
to the plugins API (they even seem less hackish now...)

Thanks !

_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to