From d110e776d3c178444130b1361a50b00eac7c0275 Mon Sep 17 00:00:00 2001 From: Marius Mauch Date: Thu, 26 Oct 2006 13:49:45 +0000 Subject: streamline portage pythonpath handling and add an override analog to how the bash side does it svn path=/main/trunk/; revision=4822 --- bin/pkgname | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/pkgname') 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 -- cgit v1.2.3-1-g7c22