def runMainLoop(self, fileName=None):
    'The main loop for the browser gui.'
    if fileName:
        print(('LeoWapp running: %s...' % g.shortFileName(fileName)))
    else:
        print('LeoWapp running...')
    if 0:
        path = g.os_path_finalize_join(g.app.loadDir, '..', 'test', 'unittest.leo')
        c = g.openWithFileName(path, gui=self)
        c.findCommands.ftm = g.NullObject()
        c.debugCommands.runAllUnitTestsLocally()
    print('calling sys.exit(0)')
    sys.exit(0)
The main loop for the browser gui.
def runMainLoop(self, fileName=None):
    
    if fileName:
        print(('LeoWapp running: %s...' % g.shortFileName(fileName)))
    else:
        print('LeoWapp running...')
    if 0:
        path = g.os_path_finalize_join(g.app.loadDir, '..', 'test', 'unittest.leo')
        c = g.openWithFileName(path, gui=self)
        c.findCommands.ftm = g.NullObject()
        c.debugCommands.runAllUnitTestsLocally()
    print('calling sys.exit(0)')
    sys.exit(0)