diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-12-09 22:02:01 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-12-09 22:02:01 -0800 |
commit | bd8514843e2dac56c59a566b335c89d486ad894b (patch) | |
tree | 3014b981fc468bc61efe0279c0d47b7fb875eea7 /pym/portage/dispatch_conf.py | |
parent | 49689816166eee3d4fd4d2b1b9932398f3835341 (diff) | |
download | portage-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.py | 4 |
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: |