summaryrefslogtreecommitdiffstats
path: root/bin/ebuild-helpers/portageq
blob: 3a06fdd68a44670b7be9d923abe8340442142dc8 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
# Copyright 2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

PORTAGE_BIN_PATH=${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}
PORTAGE_PYM_PATH=${PORTAGE_PYM_PATH:-/usr/lib/portage/pym}
# Set EPYTHON variable as empty so that portageq doesn't try
# to use potentially unsupported version of Python.
EPYTHON= PYTHONPATH=$PORTAGE_PYM_PATH${PYTHONPATH:+:}$PYTHONPATH \
	exec "$PORTAGE_BIN_PATH/portageq" "$@"