summaryrefslogtreecommitdiffstats
path: root/bin/clean_locks
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/clean_locks
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/clean_locks')
-rwxr-xr-xbin/clean_locks3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/clean_locks b/bin/clean_locks
index 71db0b8e2..57076b631 100755
--- a/bin/clean_locks
+++ b/bin/clean_locks
@@ -7,7 +7,8 @@ import os,sys,errno
try:
import portage_locks
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_locks
if not sys.argv[1:] or "--help" in sys.argv or "-h" in sys.argv: