diff options
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage/dispatch_conf.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pym/portage/dispatch_conf.py b/pym/portage/dispatch_conf.py index 499102030..f5beba5c0 100644 --- a/pym/portage/dispatch_conf.py +++ b/pym/portage/dispatch_conf.py @@ -38,8 +38,9 @@ def diffstatusoutput_len(cmd): return (1, 1) def read_config(mandatory_opts): - loader = KeyValuePairFileLoader( - '/etc/dispatch-conf.conf', None) + eprefix = os.environ.get("__PORTAGE_TEST_EPREFIX", "/") + config_path = os.path.join(eprefix, "etc/dispatch-conf.conf") + loader = KeyValuePairFileLoader(config_path, None) opts, errors = loader.load() if not opts: print(_('dispatch-conf: Error reading /etc/dispatch-conf.conf; fatal'), file=sys.stderr) |