summaryrefslogtreecommitdiffstats
path: root/bin/chkcontents
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-02-10 21:43:35 +0000
committerZac Medico <zmedico@gentoo.org>2007-02-10 21:43:35 +0000
commitb6d91984f5c298e172bd4e71d82919000971521f (patch)
tree02d5f51e82399dd54dc86be8041559ce075f4871 /bin/chkcontents
parent360c2740b9efa31775444795ffaf826e55dd34e1 (diff)
downloadportage-b6d91984f5c298e172bd4e71d82919000971521f.tar.gz
portage-b6d91984f5c298e172bd4e71d82919000971521f.tar.bz2
portage-b6d91984f5c298e172bd4e71d82919000971521f.zip
Use os.path.realpath to handle symlinks properly.
svn path=/main/trunk/; revision=5945
Diffstat (limited to 'bin/chkcontents')
-rwxr-xr-xbin/chkcontents2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/chkcontents b/bin/chkcontents
index 3d1ab2ca3..fe108de06 100755
--- a/bin/chkcontents
+++ b/bin/chkcontents
@@ -13,7 +13,7 @@ try:
import portage
except ImportError:
from os import path as osp
- sys.path.insert(0, osp.join(osp.dirname(osp.dirname(__file__)), "pym"))
+ sys.path.insert(0, osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym"))
import portage
def CONTENTScheck(path):