From 3c8e2d618a1dd14bd1a493d7172204ac1b78f75f Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Tue, 8 Jul 2008 11:20:39 +0000 Subject: [PATCH 1/1] allow import of ConfigLists from non Screens. positions. example: --- lib/python/Screens/Wizard.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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')): -- 2.30.2