summaryrefslogtreecommitdiffstats
path: root/bin/pkgname
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pkgname')
-rwxr-xr-xbin/pkgname3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/pkgname b/bin/pkgname
index ee4807744..e842f38fb 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(__file__)), "pym"))
import portage
a=portage.pkgsplit(sys.argv[1])