Browse Source

Merge pull request #885 from dgoodwin/pylint-pythonpath

Fix pylint import errors for utils/test/.
Brenton Leanhardt 9 years ago
parent
commit
460c82e2ce
1 changed files with 2 additions and 0 deletions
  1. 2 0
      git/pylint.sh

+ 2 - 0
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}