tests/testlib/pythonpath.sh
author Martin von Zweigbergk <martinvonz@google.com>
Thu, 24 Aug 2017 10:48:38 -0700
changeset 2857 0c286d054bcd
parent 2046 994d81caec68
child 4332 9980df8eda98
permissions -rw-r--r--
warning: use 'divergent', not 'contentdivergent' on old Mercurial This was just an oversight in f6517779a7c4 (warning: rename warning message, 2017-08-24).

# 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