summaryrefslogtreecommitdiffstats
path: root/bin/pkgname
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pkgname')
-rwxr-xr-xbin/pkgname4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/pkgname b/bin/pkgname
index d1ba2f3dd..546b05d3c 100755
--- a/bin/pkgname
+++ b/bin/pkgname
@@ -3,8 +3,8 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
-import sys
-sys.path = ["/usr/lib/portage/pym"]+sys.path
+import sys, os
+sys.path.insert(0, os.environ.get("PORTAGE_PYM_PATH", "/usr/lib/portage/pym"))
import portage