X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/bb9ce4897ba4326cd0cdf4b394631c679ba353dc..4df5c9884064664ed716fdd79cdd9d56b74be7e2:/mytest.py diff --git a/mytest.py b/mytest.py index 391eda9f..9d2998ba 100644 --- a/mytest.py +++ b/mytest.py @@ -1,3 +1,4 @@ +from Tools import RedirectOutput from enigma import * from tools import * @@ -21,24 +22,27 @@ InitFallbackFiles() eDVBDB.getInstance().reloadBouquets() try: - from twisted.internet import e2reactor + import e2reactor e2reactor.install() from twisted.internet import reactor def runReactor(): reactor.run() -except: +except ImportError: + print "twisted not available" def runReactor(): runMainloop() # initialize autorun plugins and plugin menu entries from Components.PluginComponent import plugins -plugins.getPluginList(runAutostartPlugins=True) +plugins.readPluginList() + from Screens.Wizard import wizardManager from Screens.StartWizard import * from Screens.TutorialWizard import * from Tools.BoundFunction import boundFunction +from Plugins.Plugin import PluginDescriptor had = dict() @@ -268,11 +272,13 @@ def runScreenTest(): session.nav = Navigation() screensToRun = wizardManager.getWizards() + for p in plugins.getPlugins(PluginDescriptor.WHERE_WIZARD): + screensToRun.append(p.__call__) screensToRun.append(Screens.InfoBar.InfoBar) def runNextScreen(session, screensToRun, *result): if result: - quitMainloop(result) + quitMainloop(*result) screen = screensToRun[0] @@ -329,7 +335,7 @@ import Components.NimManager # first, setup a screen try: runScreenTest() - plugins.getPluginList(runAutoendPlugins=True) + plugins.shutdown() except: print 'EXCEPTION IN PYTHON STARTUP CODE:' print '-'*60