override platform.supportsThreads early enough
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 7 Sep 2007 21:41:44 +0000 (21:41 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 7 Sep 2007 21:41:44 +0000 (21:41 +0000)
mytest.py

index 969d345..81c9f95 100644 (file)
--- a/mytest.py
+++ b/mytest.py
@@ -31,12 +31,12 @@ eDVBDB.getInstance().reloadBouquets()
 config.misc.radiopic = ConfigText(default = resolveFilename(SCOPE_SKIN_IMAGE)+"radio.mvi")
 
 try:
 config.misc.radiopic = ConfigText(default = resolveFilename(SCOPE_SKIN_IMAGE)+"radio.mvi")
 
 try:
-       import e2reactor
-       e2reactor.install()
-
        import twisted.python.runtime
        twisted.python.runtime.platform.supportsThreads = lambda: False
 
        import twisted.python.runtime
        twisted.python.runtime.platform.supportsThreads = lambda: False
 
+       import e2reactor
+       e2reactor.install()
+
        from twisted.internet import reactor
 
        def runReactor():
        from twisted.internet import reactor
 
        def runReactor():