[Twisted-Python] twistd plugin documentation
Jon Parise
jon at indelible.org
Tue Apr 15 02:05:13 EDT 2008
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?
[1] http://twistedmatrix.com/projects/core/documentation/howto/tap.html
--
Jon Parise (jon of indelible.org) :: "Scientia potentia est"
More information about the Twisted-Python
mailing list