tests/testlib/pythonpath.sh
author Martin von Zweigbergk <martinvonz@google.com>
Fri, 07 Sep 2018 11:08:47 -0700
branchstable
changeset 4091 2c60ad0d54a9
parent 2046 994d81caec68
child 4332 9980df8eda98
permissions -rw-r--r--
rewind: fix help text (mostly grammar, but also s/precursor/predecessor)

# 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