summaryrefslogtreecommitdiffstats
path: root/pym/portage/sets/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/sets/__init__.py')
-rw-r--r--pym/portage/sets/__init__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/pym/portage/sets/__init__.py b/pym/portage/sets/__init__.py
index dc6661480..2f65f98bf 100644
--- a/pym/portage/sets/__init__.py
+++ b/pym/portage/sets/__init__.py
@@ -176,8 +176,12 @@ class SetConfig(object):
return myatoms
def load_default_config(settings, trees):
+ global_config_path = GLOBAL_CONFIG_PATH
+ if settings['EPREFIX']:
+ global_config_path = os.path.join(settings['EPREFIX'],
+ GLOBAL_CONFIG_PATH.lstrip(os.sep))
def _getfiles():
- for path, dirs, files in os.walk(os.path.join(GLOBAL_CONFIG_PATH, "sets")):
+ for path, dirs, files in os.walk(os.path.join(global_config_path, "sets")):
for f in files:
yield os.path.join(path, f)