from twisted.internet import reactor def runReactor(): reactor.run(installSignalHandlers=False) reactor.stop() reactor.doShutdown() except ImportError: print "twisted not available" def runReactor(): runMainloop() profile("LOAD:API") from API import registerAPIs registerAPIs() profile("LOAD:Plugin") # initialize autorun plugins and plugin menu entries from Components.PluginComponent import plugins from Plugins.Plugin import PluginDescriptor plugins.runEarlyPlugins(resolveFilename(SCOPE_PLUGINS)) profile("LOAD:Wizard") from Screens.Wizard import wizardManager from Screens.DefaultWizard import * from Screens.StartWizard import * from Screens.TutorialWizard import * import Screens.Rc from Tools.BoundFunction import boundFunction
def runReactor(): reactor.run(installSignalHandlers=False) reactor.stop() reactor.doShutdown() except ImportError: print "twisted not available" def runReactor(): runMainloop() profile("LOAD:API") from API import registerAPIs registerAPIs() profile("LOAD:Plugin") # initialize autorun plugins and plugin menu entries from Components.PluginComponent import plugins from Plugins.Plugin import PluginDescriptor plugins.runEarlyPlugins(resolveFilename(SCOPE_PLUGINS)) profile("LOAD:Wizard") from Screens.Wizard import wizardManager from Screens.DefaultWizard import * from Screens.StartWizard import * from Screens.TutorialWizard import * import Screens.Rc from Tools.BoundFunction import boundFunction