diff options
author | Marius Mauch <genone@gentoo.org> | 2006-10-26 13:49:45 +0000 |
---|---|---|
committer | Marius Mauch <genone@gentoo.org> | 2006-10-26 13:49:45 +0000 |
commit | d110e776d3c178444130b1361a50b00eac7c0275 (patch) | |
tree | 6fae6e36adc1da056de8e52c32e0e01680a85fec /bin/regenworld | |
parent | e3d5ecc57975b2a168bc436efd90bc3223f1b4e7 (diff) | |
download | portage-d110e776d3c178444130b1361a50b00eac7c0275.tar.gz portage-d110e776d3c178444130b1361a50b00eac7c0275.tar.bz2 portage-d110e776d3c178444130b1361a50b00eac7c0275.zip |
streamline portage pythonpath handling and add an override analog to how the bash side does it
svn path=/main/trunk/; revision=4822
Diffstat (limited to 'bin/regenworld')
-rwxr-xr-x | bin/regenworld | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/regenworld b/bin/regenworld index 7b14c2131..d5e28dd7f 100755 --- a/bin/regenworld +++ b/bin/regenworld @@ -3,9 +3,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ -import sys -sys.path.insert(0, "/usr/lib/portage/pym") -import os +import sys, os +sys.path.insert(0, os.environ.get("PORTAGE_PYM_PATH", "/usr/lib/portage/pym")) import portage, string, re __candidatematcher__ = re.compile("^[0-9]+: \\*\\*\\* emerge ") |