def main(): # XXX. test data_directory = './tmp_apaf' # tempfile.mktemp(dir='./') os.mkdir(data_directory) base.main(data_directory=data_directory) reactor.run()
def start_apaf(): """ Start the apaf. It gets called asyncronously by ApafAppWrapper didFinishLoading """ base.main().addCallback(setup_complete).addErrback(setup_failed) reactor.interleave(AppHelper.callAfter)
def std_main(): from apaf.run import base from twisted.internet import reactor base.main().addCallback(base.setup_complete).addErrback(base.setup_failed) reactor.run()
def start_apaf(): base.main().addCallback(setup_complete).addErrback(base.setup_failed)
def SvcDoRun(self): from apaf.run import base base.main() reactor.run()
def start_apaf(): base.main().addCallback(setup_complete).addErrback(base.setup_failed) reactor.interleave(win32gui.PumpMessages)