[Twisted-Python] twistd plugin documentation

Chris Miles miles.chris at gmail.com
Tue Apr 15 02:44:20 EDT 2008

On 15/04/2008, at 4:05 PM, Jon Parise wrote:
> I was just reading through the "Writing a twistd Plugin"[1]
> documentation and ran into some confusion.  If you follow the
> suggested directory structure (e.g. MyProject/myproject/__init__.py)
> and name the plugin file twisted/plugins/myproject.py, any attempt to
> "import myproject" from within the plugin file will import the plugin
> module and not the myproject module.
> I see that Twisted itself prefixes its plugin files (e.g.
> twisted_web.py), perhaps to get around this problem.
> So does that plugin documentation need a small update, or have I done
> something to trip myself up?

I think you're right, I remember it confused me a little too.  I just  
name my plugins like twisted/plugins/myproject_plugin.py


More information about the Twisted-Python mailing list