summaryrefslogtreecommitdiffstats
path: root/git
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2015-11-12 14:47:14 -0400
committerDevan Goodwin <dgoodwin@redhat.com>2015-11-12 14:47:14 -0400
commitf6569cf004e9b1c7cc4c69089012492d685c81e8 (patch)
tree2879af5c0ef70ed8b1b5683f68751303780f6627 /git
parent7dc7b964f2e384d6d52aa2c7783b45a3602f0d71 (diff)
downloadopenshift-f6569cf004e9b1c7cc4c69089012492d685c81e8.tar.gz
openshift-f6569cf004e9b1c7cc4c69089012492d685c81e8.tar.bz2
openshift-f6569cf004e9b1c7cc4c69089012492d685c81e8.tar.xz
openshift-f6569cf004e9b1c7cc4c69089012492d685c81e8.zip
Fix pylint import errors for utils/test/.
pylint is unable to import the modules in src as they are not on the path.
Diffstat (limited to 'git')
-rwxr-xr-xgit/pylint.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/git/pylint.sh b/git/pylint.sh
index 55e8b6131..f29c055dc 100755
--- a/git/pylint.sh
+++ b/git/pylint.sh
@@ -40,6 +40,8 @@ for PY_FILE in $PY_DIFF; do
fi
done
+export PYTHONPATH=${WORKSPACE}/utils/src/:${WORKSPACE}/utils/test/
+
if [ "${FILES_TO_TEST}" != "" ]; then
echo "Testing files: ${FILES_TO_TEST}"
exec ${PYTHON} -m pylint --rcfile ${WORKSPACE}/git/.pylintrc ${FILES_TO_TEST}