From bd8514843e2dac56c59a566b335c89d486ad894b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 9 Dec 2011 22:02:01 -0800 Subject: Use portage.const.EPREFIX more. --- pym/portage/dispatch_conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pym/portage/dispatch_conf.py') 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: -- cgit v1.2.3-1-g7c22