From f6569cf004e9b1c7cc4c69089012492d685c81e8 Mon Sep 17 00:00:00 2001 From: Devan Goodwin Date: Thu, 12 Nov 2015 14:47:14 -0400 Subject: Fix pylint import errors for utils/test/. pylint is unable to import the modules in src as they are not on the path. --- git/pylint.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'git') 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} -- cgit v1.2.1