diff --git a/run-tests b/run-tests index 03211c4b..e7861dc7 100755 --- a/run-tests +++ b/run-tests @@ -9,6 +9,10 @@ fi : "${PYTHON:=python3}" : "${TESTPYTHONPATH:=test-packages}" +if [ -d ../core-qrexec/qrexec ] && ! $PYTHON -c 'import qrexec' 2>/dev/null; then + PYTHONPATH="${PYTHONPATH}:../core-qrexec" +fi + PYTHONPATH="${TESTPYTHONPATH}:${PYTHONPATH}" export PYTHONPATH