summaryrefslogtreecommitdiffstats
path: root/pym/portage/dispatch_conf.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-12-09 22:02:01 -0800
committerZac Medico <zmedico@gentoo.org>2011-12-09 22:02:01 -0800
commitbd8514843e2dac56c59a566b335c89d486ad894b (patch)
tree3014b981fc468bc61efe0279c0d47b7fb875eea7 /pym/portage/dispatch_conf.py
parent49689816166eee3d4fd4d2b1b9932398f3835341 (diff)
downloadportage-bd8514843e2dac56c59a566b335c89d486ad894b.tar.gz
portage-bd8514843e2dac56c59a566b335c89d486ad894b.tar.bz2
portage-bd8514843e2dac56c59a566b335c89d486ad894b.zip
Use portage.const.EPREFIX more.
Diffstat (limited to 'pym/portage/dispatch_conf.py')
-rw-r--r--pym/portage/dispatch_conf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/dispatch_conf.py b/pym/portage/dispatch_conf.py
index abd3ac141..7f407fffe 100644
--- a/pym/portage/dispatch_conf.py
+++ b/pym/portage/dispatch_conf.py
@@ -39,8 +39,8 @@ def diffstatusoutput_len(cmd):
return (1, 1)
def read_config(mandatory_opts):
- eprefix = os.environ.get("__PORTAGE_TEST_EPREFIX", "/")
- config_path = os.path.join(eprefix, "etc/dispatch-conf.conf")
+ eprefix = portage.const.EPREFIX
+ config_path = os.path.join(eprefix or os.sep, "etc/dispatch-conf.conf")
loader = KeyValuePairFileLoader(config_path, None)
opts, errors = loader.load()
if not opts: