fix python refcounting
[enigma2.git] / mytest.py
index 42bcd3eefe17fa91ae139b4581ec29afc5634ebd..b5bf0a4dc6d2f84de20ded9087fbb20b2c4e0a1a 100644 (file)
--- a/mytest.py
+++ b/mytest.py
@@ -18,7 +18,15 @@ from skin import readSkin, applyAllAttributes
 from Components.config import configfile
 from Screens.Wizard import wizardManager
 from Screens.StartWizard import *
+from Screens.TutorialWizard import *
 from Tools.BoundFunction import boundFunction
+from Tools.Directories import InitFallbackFiles
+InitFallbackFiles()
+eDVBDB.getInstance().reloadBouquets()
+
+# initialize autorun plugins and plugin menu entries
+from Components.PluginComponent import plugins
+plugins.getPluginList()
 
 had = dict()
 
@@ -75,8 +83,6 @@ class Session:
 
                if self.currentDialog.isTmp:
                        self.currentDialog.doClose()
-
-                       del self.currentDialog.instance
 #                      dump(self.currentDialog)
                        del self.currentDialog
                else:
@@ -121,6 +127,9 @@ class Session:
                        quitMainloop(5)
                        print '-'*60
                
+               if dlg is None:
+                       return
+
                # read skin data
                readSkin(dlg, None, dlg.skinName, self.desktop)
 
@@ -215,6 +224,12 @@ Components.InputDevice.InitInputDevices()
 import Components.AVSwitch
 Components.AVSwitch.InitAVSwitch()
 
+import Components.RecordingConfig
+Components.RecordingConfig.InitRecordingConfig()
+
+import Components.UsageConfig
+Components.UsageConfig.InitUsageConfig()
+
 import Components.Network
 Components.Network.InitNetwork()