Explorar el Código

Merge pull request #885 from dgoodwin/pylint-pythonpath

Fix pylint import errors for utils/test/.
Brenton Leanhardt hace 9 años
padre
commit
460c82e2ce
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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}