[Twisted-Python] Newbie question: How to reference the "__main__"

Yun Mao maoy at cis.upenn.edu
Fri Oct 1 11:32:36 EDT 2004


but the sys.argv[1:] is going to be twistd's argument, including
"-noy","xxx.tac", etc. right? it isn't exactly what he wanted, is it?

Yun


On Fri, 1 Oct 2004, Itamar Shtull-Trauring wrote:

> On Fri, 2004-10-01 at 05:40, Iap, Singuan wrote:
>
> > In server.py
> > ----------------------------------------
> > config=Configuration()
> somewhere.MyObject.addConfig(config)
>
> and then MyObject can access the config.
>
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>




More information about the Twisted-Python mailing list