From d7a2d84dd11b355b51fdd7e223b0c09d9d7bc0f1 Mon Sep 17 00:00:00 2001 From: Marius Mauch Date: Mon, 29 Sep 2008 00:18:59 +0000 Subject: [PATCH] allow the portage.sets. prefix to be omitted in 'class' options of set definitions svn path=/main/trunk/; revision=11599 --- pym/portage/sets/__init__.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pym/portage/sets/__init__.py b/pym/portage/sets/__init__.py index d6b3b5e87..7ac6502b7 100644 --- a/pym/portage/sets/__init__.py +++ b/pym/portage/sets/__init__.py @@ -70,8 +70,11 @@ class SetConfig(SafeConfigParser): try: setclass = load_mod(classname) except (ImportError, AttributeError): - self.errors.append("Could not import '%s' for section '%s'" % (classname, sname)) - continue + try: + setclass = load_mod("portage.sets."+classname) + except (ImportError, AttributeError): + self.errors.append("Could not import '%s' for section '%s'" % (classname, sname)) + continue # prepare option dict for the current section optdict = {} for oname in self.options(sname): -- 2.26.2