Exemplo n.º 1
0
    def run(self):
	pool = NSAutoreleasePool.alloc().init()

        options, args = parser.parse_args(args=self.cmd.split())
        self.controller.loader.main(options, args)

	del pool
Exemplo n.º 2
0
    def init(self):
        super(RedfootController, self).init()

        self.output = stdout
        worker = OutputThread(self)
        worker.start()

	self.loader = BootLoader()    
        options, args = parser.parse_args(args="".split())
	self.loader.open(options.path)
	self.loader.main(options, args)
	self.redfoot = self.loader.redfoot
        self.redfoot.controller = self	
        return self