From 19f361b97cd28e7e550fe1253c700ec2f83c5ff6 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 25 Apr 2015 15:55:45 -0700 Subject: [PATCH] Support running run-tests.sh from other directories We'll see if this works with the bare /bin/sh's of TravisCI... --- run-tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run-tests.sh b/run-tests.sh index a03e91bc7..c9b95996c 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -11,7 +11,8 @@ fi test "x$PYTHON" = x && PYTHON=python # Setup environment -cd Lib +DIR=`dirname "$0"` +cd "$DIR/Lib" PYTHONPATH=".:$PYTHONPATH" export PYTHONPATH