docs/tutorial/testlib/pythonpath.sh
author willstott101@gmail.com
Mon, 02 Mar 2020 17:12:09 +0000
branchstable
changeset 5137 4fef6b157175
parent 3376 aad37ffd7d58
child 5227 b24de4b465ea
permissions -rw-r--r--
py3-exceptions: wrap more Exceptions in forcebytestr before formatting

# 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