aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2005-11-17 16:28:57 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2005-11-17 16:28:57 +0000
commitd0ca21133e420f63c90d44e6b8bd23273e2ffd58 (patch)
treee9ba59253e9cc7839b7875ea5163a1d318a7d0f9 /lib/python
parenta630959f3049fd7dda7d687d0d5dc827ba4cfe2b (diff)
downloadenigma2-d0ca21133e420f63c90d44e6b8bd23273e2ffd58.tar.gz
enigma2-d0ca21133e420f63c90d44e6b8bd23273e2ffd58.zip
use c++-fallback for lack of tzset-python-function
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Components/Timezones.py4
-rw-r--r--lib/python/enigma_python.i2
2 files changed, 5 insertions, 1 deletions
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 <lib/dvb/frontendparms.h>
#include <lib/driver/avswitch.h>
#include <lib/driver/rfmod.h>
+#include <lib/driver/etimezone.h>
#include <lib/gdi/lcd.h>
#include <lib/dvb_ci/dvbci_ui.h>
@@ -168,6 +169,7 @@ typedef long time_t;
%include <lib/dvb/frontendparms.h>
%include <lib/driver/avswitch.h>
%include <lib/driver/rfmod.h>
+%include <lib/driver/etimezone.h>
%include <lib/gdi/lcd.h>
%include <lib/dvb_ci/dvbci_ui.h>