[Twisted-Python] Passing arguments to application

Jp Calderone exarkun at divmod.com
Wed Jun 29 08:30:17 EDT 2005

On Wed, 29 Jun 2005 14:18:03 +0200, Stephan Popp <stephan.popp at iisb.fraunhofer.de> wrote:
>maybe I haven't searched enough, but I don't find anything that halps me to
>solve my problem.
>I've got a serverapplication. The problem is in the following lines:
>application = service.Application("TwistedServerApp")
>internet.TCPServer(8800, pb.ServerFactory...)
>I don't want to start this with a predetermined port. More like:
>twistd -y TwistedServerApp.tac 8800
>Is this somehow possible? sys.argv seems impossible to use.

.tac files don't take configuration.  .tac files _are_ configuration.  There are no provisions for "passing arguments" to them.


More information about the Twisted-Python mailing list