tests/testlib/pythonpath.sh
author Pierre-Yves David <pierre-yves.david@octobus.net>
Thu, 21 Dec 2017 06:18:50 +0100
changeset 3357 6020f2c9dbd9
parent 2046 994d81caec68
child 4332 9980df8eda98
permissions -rw-r--r--
obshashrange: add a progressbar to upgrade This section is the slowest, have some progress idea would be useful.

# utility to setup pythonpath to point into the tested repository

export SRCDIR=`dirname $TESTDIR`
if [ -n "$PYTHONPATH" ]; then
    export HGTEST_ORIG_PYTHONPATH=$PYTHONPATH
    export PYTHONPATH=$SRCDIR:$PYTHONPATH
else
    export PYTHONPATH=$SRCDIR
fi