aboutsummaryrefslogtreecommitdiff
blob: 332958613dd8af4920a77041bd444c4e6e8cfaee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#
# Generic testpath to source.  This sets PATH and PYTHONPATH
# to use the current checkout code, before searching the main PATH, PYTHONPATH
# cd ~/.../portage
# source ./testpath
# emerge foo
# repoman manifest
# ...
if [[ "$SHELL" =~ "zsh" ]]; then
	export PATH="$(dirname $0)/bin:${PATH}"
	export PYTHONPATH=PYTHONPATH="$(dirname $0)/lib:${PYTHONPATH:+:}${PYTHONPATH}"
else
	export PATH="$(dirname ${BASH_SOURCE[0]})/bin:${PATH}"
	export PYTHONPATH=PYTHONPATH="$(dirname $BASH_SOURCE[0])/lib:${PYTHONPATH:+:}${PYTHONPATH}"
fi
export PYTHONWARNINGS=d,i::ImportWarning