summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/sets/__init__.py7
1 files 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):