aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/bash
diff options
context:
space:
mode:
authorVratko Polak <vrpolak@cisco.com>2019-03-07 10:43:40 +0100
committerVratko Polak <vrpolak@cisco.com>2019-03-07 10:43:40 +0100
commit0c45de2af90637065a799f95e3353e57fdb49065 (patch)
tree3b2169b85927b24c3170d8f7d1e8b0dc83aad7ac /resources/libraries/bash
parent86af0b9a49b5513e328359241a11a1ca44075bc5 (diff)
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 <vrpolak@cisco.com>
Diffstat (limited to 'resources/libraries/bash')
-rw-r--r--resources/libraries/bash/function/common.sh2
1 files changed, 1 insertions, 1 deletions
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."
}