From 626bf72a572d8852e069c75553c5d121a29bf587 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 6 Feb 2013 20:40:36 +0000 Subject: Set PYTHONPATH during tests This is necessary so that the write extension run by cmdtest finds the morphlib of the source tree we're running ./check in, rather than the system installed one. --- check | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'check') diff --git a/check b/check index 67b4ce34..baced129 100755 --- a/check +++ b/check @@ -19,6 +19,12 @@ set -e +case "$PYTHONPATH" in + '') PYTHONPATH="$(pwd)" ;; + *) PYTHONPATH="$(pwd):$PYTHONPATH" ;; +esac +export PYTHONPATH + python setup.py clean check cmdtest tests cmdtest tests.branching -- cgit v1.2.1