Re: [Twisted-Python] Multiple Twisted Application Plugins in the same directory?

That indeed worked. It did occur to me for a fleeting moment when I looked at the man page; however, when I ran 'twistd --help-reactors' it spit out nothing so I was not sure of exactly what it wanted or if it worked at all.
----- Original Message ---- From: Christopher Armstrong radix@twistedmatrix.com To: Twisted general discussion twisted-python@twistedmatrix.com Sent: Wednesday, September 12, 2007 5:15:53 PM Subject: Re: [Twisted-Python] Multiple Twisted Application Plugins in the same directory?
On 9/12/07, Beau Hargis beau@subobscur.us wrote:
For one of the services I want to use pollreactor or epollreactor, so each of the Services has only 4 lines in it:
from twisted.internet import pollreactor pollreactor.install() import Project.Processors.ProcessorX theService = Project.Processors.ProcessorX.ProcXServiceMaker()
Don't install a reactor in the plugin: in fact, don't import the reactor at all. The correct way to choose the reactor is by passing the "-r" or "--reactor" argument to 'twistd', like 'twistd -r poll myplugin'
participants (1)
-
Beau Hargis