tests/testlib/pythonpath.sh
author Philippe Pepiot <phil@philpep.org>
Tue, 29 Aug 2017 14:19:31 +0200
changeset 2865 b0b8cc3064b0
parent 2046 994d81caec68
child 4332 9980df8eda98
permissions -rw-r--r--
doc: let mercurial find where evolve is installed

# 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