Fix PYTHONPATH in activate_environment 05/18105/1
authorVratko Polak <vrpolak@cisco.com>
Thu, 7 Mar 2019 09:43:40 +0000 (10:43 +0100)
committerVratko Polak <vrpolak@cisco.com>
Thu, 7 Mar 2019 09:43:40 +0000 (10:43 +0100)
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>
resources/libraries/bash/function/common.sh

index 2ae1354..7da8020 100644 (file)
@@ -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."
 }
 
 

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.