Exemple #1
0
profile("RFMod")
import Components.RFmod
Components.RFmod.InitRFmod()

profile("Init:CI")
import Screens.Ci
Screens.Ci.InitCiConfig()

profile("RcModel")
import Components.RcModel

#from enigma import dump_malloc_stats
#t = eTimer()
#t.callback.append(dump_malloc_stats)
#t.start(1000)

# first, setup a screen
try:
	runScreenTest()

	plugins.shutdown()

	Components.ParentalControl.parentalControl.save()
except:
	print 'EXCEPTION IN PYTHON STARTUP CODE:'
	print '-'*60
	print_exc(file=stdout)
	print "[mytest.py] quitMainloop #4"
	enigma.quitMainloop(5)
	print '-'*60
Exemple #2
0
import Components.RcModel

profile("IPv6")
if os.path.exists('/etc/enigma2/ipv6'):
    try:
        fp = open('/proc/sys/net/ipv6/conf/all/disable_ipv6', 'w')
        fp.write("1")
        fp.close()
    except:
        pass

#from enigma import dump_malloc_stats
#t = eTimer()
#t.callback.append(dump_malloc_stats)
#t.start(1000)

# first, setup a screen
try:
    runScreenTest()

    plugins.shutdown()

    Components.ParentalControl.parentalControl.save()
except:
    print 'EXCEPTION IN PYTHON STARTUP CODE:'
    print '-' * 60
    print_exc(file=stdout)
    print "[mytest.py] quitMainloop #4"
    enigma.quitMainloop(5)
    print '-' * 60
profile("CommonInterface")
from Screens.Ci import CiHandler, InitCiConfig
InitCiConfig()

profile("EpgCacheScheduler")
from Components.EpgLoadSave import EpgCacheLoadCheck, EpgCacheSaveCheck
EpgCacheSaveCheck()
EpgCacheLoadCheck()

if config.clientmode.enabled.value:
	from Components.ChannelsImporter import autostart
	autostart()

# from enigma import dump_malloc_stats
# timer = eTimer()
# timer.callback.append(dump_malloc_stats)
# timer.start(1000)

# Lets get going and load a screen.
#
try:
	runScreen()  # Start running the first screen.
	plugins.shutdown()  # Shutdown all plugins.
	Components.ParentalControl.parentalControl.save()  # Save parental control settings.
except Exception:
	print("Error: Exception in Python StartEnigma startup code:")
	print("=" * 52)
	print_exc(file=stdout)
	enigma.quitMainloop(5)  # QUIT_ERROR_RESTART
	print("-" * 52)