from skin import readSkin, applyAllAttributes
from Components.config import configfile
+from Tools.Directories import InitFallbackFiles
+InitFallbackFiles()
+eDVBDB.getInstance().reloadBouquets()
+
+try:
+ from twisted.internet import e2reactor
+ e2reactor.install()
+
+ from twisted.internet import reactor
+
+ def runReactor():
+ reactor.run()
+except:
+ def runReactor():
+ runMainloop()
+
+# initialize autorun plugins and plugin menu entries
+from Components.PluginComponent import plugins
+plugins.getPluginList(runAutostartPlugins=True)
from Screens.Wizard import wizardManager
from Screens.StartWizard import *
from Screens.TutorialWizard import *
# create GUI view of this dialog
assert self.desktop != None
- dlg.instance = eWindow(self.desktop)
+
+ z = 0
+ for (key, value) in dlg.skinAttributes:
+ if key == "zPosition":
+ z = int(value)
+
+ dlg.instance = eWindow(self.desktop, z)
applyAllAttributes(dlg.instance, self.desktop, dlg.skinAttributes)
gui = GUIOutputDevice()
gui.parent = dlg.instance
CONNECT(keyPressedSignal(), session.keyEvent)
- runMainloop()
+ runReactor()
configfile.save()
import Components.AVSwitch
Components.AVSwitch.InitAVSwitch()
+import Components.RecordingConfig
+Components.RecordingConfig.InitRecordingConfig()
+
+import Components.UsageConfig
+Components.UsageConfig.InitUsageConfig()
+
import Components.Network
Components.Network.InitNetwork()
# first, setup a screen
try:
runScreenTest()
+ plugins.getPluginList(runAutoendPlugins=True)
except:
print 'EXCEPTION IN PYTHON STARTUP CODE:'
print '-'*60