From 44977e8deeeeba497f88f64a3236aa3361e80f97 Mon Sep 17 00:00:00 2001 From: Brian Dolbec Date: Fri, 19 Sep 2014 18:33:36 -0700 Subject: testpath: Add a generic testpath script Source this testpath script from the base checkout directory to run all checkout code. --- testpath | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 testpath (limited to 'testpath') diff --git a/testpath b/testpath new file mode 100644 index 000000000..144387dca --- /dev/null +++ b/testpath @@ -0,0 +1,11 @@ +# +# 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 +# ... +export PATH="$(dirname ${BASH_SOURCE[0]})/bin:${PATH}" +export PYTHONPATH=PYTHONPATH="$(dirname $BASH_SOURCE[0])/pym:${PYTHONPATH:+:}${PYTHONPATH}" +export PYTHONWARNINGS=d,i::ImportWarning -- cgit v1.2.3-18-g5258