From e73924622c9bc405129f558546ca2dc5010d5393 Mon Sep 17 00:00:00 2001 From: nolash Date: Mon, 13 Sep 2021 16:42:00 +0200 Subject: [PATCH] Set default pythonpath --- run_tests.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/run_tests.sh b/run_tests.sh index 9ac346f..b8e4beb 100644 --- a/run_tests.sh +++ b/run_tests.sh @@ -1,10 +1,14 @@ #!/bin/bash +set -a set -e set -x -#export PYTHONPATH=${PYTHONPATH:.} +default_pythonpath=$PYTHONPATH:. +export PYTHONPATH=${default_pythonpath:-.} +>&2 echo using pythonpath $PYTHONPATH for f in `ls tests/*.py`; do python $f done set +x set +e +set +a