diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-02-19 08:46:42 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-02-19 08:46:42 +0000 |
commit | 24f6f5abc052453964160dda6c6d37dcd907c0e9 (patch) | |
tree | 3eded2c341d306223bb1ae4f684ca3b70dbbcd15 /bin/pkgname | |
parent | dce252e58f4bad4c7be7d0366adb06d6ba45c20b (diff) | |
download | portage-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/pkgname')
-rwxr-xr-x | bin/pkgname | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/pkgname b/bin/pkgname index ee4807744..4c0dd6c94 100755 --- a/bin/pkgname +++ b/bin/pkgname @@ -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 a=portage.pkgsplit(sys.argv[1]) |