From 0c45de2af90637065a799f95e3353e57fdb49065 Mon Sep 17 00:00:00 2001 From: Vratko Polak Date: Thu, 7 Mar 2019 10:43:40 +0100 Subject: Fix PYTHONPATH in activate_environment This affects jobs which install the virtual environment to a directory other than ${CSIT_DIR}. Change-Id: I1546043112f7504feb0452883b2ff57530dd2c9d Signed-off-by: Vratko Polak --- resources/libraries/bash/function/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/libraries/bash/function/common.sh b/resources/libraries/bash/function/common.sh index 2ae135425b..7da80201c0 100644 --- a/resources/libraries/bash/function/common.sh +++ b/resources/libraries/bash/function/common.sh @@ -127,7 +127,7 @@ function activate_virtualenv () { die "Requirements installation failed." } # Most CSIT Python scripts assume PYTHONPATH is set and exported. - export PYTHONPATH="${root_path}" || die "Export failed." + export PYTHONPATH="${CSIT_DIR}" || die "Export failed." } -- cgit 1.2.3-korg