Also use prefix in dispatch_conf
authorFabian Groffen <grobian@gentoo.org>
Sat, 4 Nov 2006 09:55:44 +0000 (09:55 -0000)
committerFabian Groffen <grobian@gentoo.org>
Sat, 4 Nov 2006 09:55:44 +0000 (09:55 -0000)
svn path=/main/branches/prefix/; revision=4934

pym/dispatch_conf.py

index 70c0a011dc2cbfb4a736f05d5907ca703d6cf14c..4f53d4d55f098309c7f3875eb5fb7337d6a264ff 100644 (file)
@@ -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: