From 865b502c0ad09f173ccf80cee1577a3d76f46fd4 Mon Sep 17 00:00:00 2001 From: Feng Pan Date: Wed, 20 Apr 2016 18:43:46 -0400 Subject: Modify pythonpath definition for strict mode Change-Id: Ib8a1a6ca80c0653b2cd593dff5a0c71d24b2f24c Signed-off-by: Feng Pan --- jjb/apex/apex.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jjb/apex/apex.yml b/jjb/apex/apex.yml index 76586ffc5..9d63d4206 100644 --- a/jjb/apex/apex.yml +++ b/jjb/apex/apex.yml @@ -855,7 +855,11 @@ exit 1 fi fi - export PYTHONPATH=$PYTHONPATH:${WORKSPACE}/lib/python/apex + if [ -z "$PYTHONPATH" ]; then + export PYTHONPATH=${WORKSPACE}/lib/python/apex + else + export PYTHONPATH=$PYTHONPATH:${WORKSPACE}/lib/python/apex + fi else RPM_LIST=$RPM_INSTALL_PATH for pkg in common undercloud opendaylight-sfc; do -- cgit 1.2.3-korg