tests/testlib/pythonpath.sh
author Philippe Pepiot <phil@philpep.org>
Fri, 01 Sep 2017 08:32:17 +0200
changeset 2962 3f466d348047
parent 2046 994d81caec68
child 4332 9980df8eda98
permissions -rw-r--r--
doc: add documentation for evolve commands By using a sphinx directive that call `hg help`.

# 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