summaryrefslogtreecommitdiffstats
path: root/bin/regenworld
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/regenworld
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/regenworld')
-rwxr-xr-xbin/regenworld3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/regenworld b/bin/regenworld
index 0f7de9a2a..ebac4a591 100755
--- a/bin/regenworld
+++ b/bin/regenworld
@@ -7,7 +7,8 @@ import sys, os
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 re