tests/testlib/pythonpath.sh
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
Tue, 07 Mar 2017 13:31:19 +0100
changeset 2050 604ecce27969
parent 2046 994d81caec68
child 4332 9980df8eda98
permissions -rw-r--r--
serveronly: use the same extensions metadata than evolve This will avoid them to drift out of sync with evolve.

# 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