aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/Wizard.py
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2008-07-08 11:20:39 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2008-07-08 11:20:39 +0000
commit3c8e2d618a1dd14bd1a493d7172204ac1b78f75f (patch)
tree204cbec90547f98a31dbb527da1efb9bb7e81ac4 /lib/python/Screens/Wizard.py
parente3626cbb8e9d0649f9180899947cd928a070a55d (diff)
downloadenigma2-3c8e2d618a1dd14bd1a493d7172204ac1b78f75f.tar.gz
enigma2-3c8e2d618a1dd14bd1a493d7172204ac1b78f75f.zip
allow import of ConfigLists from non Screens. positions.
example: <config screen="Plugins.Systemplugins.Foo" module="Bar" args="1" type="ConfigList" />
Diffstat (limited to 'lib/python/Screens/Wizard.py')
-rw-r--r--lib/python/Screens/Wizard.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/python/Screens/Wizard.py b/lib/python/Screens/Wizard.py
index 855df6ad..ab1f188b 100644
--- a/lib/python/Screens/Wizard.py
+++ b/lib/python/Screens/Wizard.py
@@ -105,7 +105,10 @@ class Wizard(Screen, HelpableScreen):
type = str(attrs.get('type'))
self.wizard[self.lastStep]["config"]["type"] = type
if type == "ConfigList" or type == "standalone":
- exec "from Screens." + str(attrs.get('module')) + " import *"
+ try:
+ exec "from Screens." + str(attrs.get('module')) + " import *"
+ except:
+ exec "from " + str(attrs.get('module')) + " import *"
self.wizard[self.lastStep]["config"]["screen"] = eval(str(attrs.get('screen')))
if (attrs.has_key('args')):