summaryrefslogtreecommitdiffstats
path: root/bin/dispatch-conf
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-02-19 08:46:42 +0000
committerZac Medico <zmedico@gentoo.org>2007-02-19 08:46:42 +0000
commit24f6f5abc052453964160dda6c6d37dcd907c0e9 (patch)
tree3eded2c341d306223bb1ae4f684ca3b70dbbcd15 /bin/dispatch-conf
parentdce252e58f4bad4c7be7d0366adb06d6ba45c20b (diff)
downloadportage-24f6f5abc052453964160dda6c6d37dcd907c0e9.tar.gz
portage-24f6f5abc052453964160dda6c6d37dcd907c0e9.tar.bz2
portage-24f6f5abc052453964160dda6c6d37dcd907c0e9.zip
For bug #167217, don't hardcode /usr/lib/portage. (trunk r5945)
svn path=/main/branches/2.1.2/; revision=6016
Diffstat (limited to 'bin/dispatch-conf')
-rwxr-xr-xbin/dispatch-conf3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/dispatch-conf b/bin/dispatch-conf
index c8e4d5678..348274802 100755
--- a/bin/dispatch-conf
+++ b/bin/dispatch-conf
@@ -21,7 +21,8 @@ import atexit, commands, os, re, shutil, stat, sys
try:
import portage
except ImportError:
- sys.path.insert(0, "/usr/lib/portage/pym")
+ from os import path as osp
+ sys.path.insert(0, osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym"))
import portage
import dispatch_conf