From 5d67f9939de33f9f3e01987af1239707b8d7420d Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sat, 4 Nov 2006 09:55:44 +0000 Subject: [PATCH] Also use prefix in dispatch_conf svn path=/main/branches/prefix/; revision=4934 --- pym/dispatch_conf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pym/dispatch_conf.py b/pym/dispatch_conf.py index 70c0a011d..4f53d4d55 100644 --- a/pym/dispatch_conf.py +++ b/pym/dispatch_conf.py @@ -10,7 +10,7 @@ from stat import * import os, sys, commands, shutil -import portage +import portage, portage_const RCS_BRANCH = '1.1.1' RCS_LOCK = 'rcs -ko -M -l' @@ -22,12 +22,12 @@ DIFF3_MERGE = 'diff3 -mE %s %s %s >%s' def read_config(mandatory_opts): try: - opts = portage.getconfig('/etc/dispatch-conf.conf') + opts = portage.getconfig(portage_const.EPREFIX+'/etc/dispatch-conf.conf') except: opts = None if not opts: - print >> sys.stderr, 'dispatch-conf: Error reading /etc/dispatch-conf.conf; fatal' + print >> sys.stderr, 'dispatch-conf: Error reading '+portage_const.EPREFIX+'/etc/dispatch-conf.conf; fatal' sys.exit(1) for key in mandatory_opts: -- 2.26.2