From d0ca21133e420f63c90d44e6b8bd23273e2ffd58 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Thu, 17 Nov 2005 16:28:57 +0000 Subject: use c++-fallback for lack of tzset-python-function --- lib/python/Components/Timezones.py | 4 +++- lib/python/enigma_python.i | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/python') diff --git a/lib/python/Components/Timezones.py b/lib/python/Components/Timezones.py index 6f71187b..0b6eb79b 100644 --- a/lib/python/Components/Timezones.py +++ b/lib/python/Components/Timezones.py @@ -4,6 +4,8 @@ from xml.sax.handler import ContentHandler import os import time +from enigma import * + class Timezones: class parseTimezones(ContentHandler): def __init__(self, timezones): @@ -30,7 +32,7 @@ class Timezones: try: time.tzset() except: - print "Timezone NOT set because your python has problems with time.tzset()" + etimezone() def getTimezoneList(self): list = [] diff --git a/lib/python/enigma_python.i b/lib/python/enigma_python.i index eb814553..a90e2fef 100644 --- a/lib/python/enigma_python.i +++ b/lib/python/enigma_python.i @@ -74,6 +74,7 @@ is usually caused by not marking PSignals as immutable. #include #include #include +#include #include #include @@ -168,6 +169,7 @@ typedef long time_t; %include %include %include +%include %include %include -- cgit v1.2.3