From: Stefan Pluecken Date: Tue, 8 Jul 2008 11:20:39 +0000 (+0000) Subject: allow import of ConfigLists from non Screens. positions. X-Git-Tag: 2.6.0~1066 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/3c8e2d618a1dd14bd1a493d7172204ac1b78f75f allow import of ConfigLists from non Screens. positions. example: --- 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')):