tests/testlib/pythonpath.sh
author Yohann Rebattu <yohann@rebattu.fr>
Sat, 21 Mar 2020 15:04:18 +0100
branchstable
changeset 5264 8e290f172423
parent 4336 33fc61e5e119
child 5316 277b45cf0dda
permissions -rw-r--r--
evolve: fixed some typos in stablerangecache LONG_MESSAGE, fix #6279

# utility to setup pythonpath to point into the tested repository

export SRCDIR="`dirname $TESTDIR`"
if [ -n "$PYTHONPATH" ]; then
    export HGTEST_ORIG_PYTHONPATH=$PYTHONPATH
    if uname -o | grep -q Msys; then
        export PYTHONPATH="$SRCDIR;$PYTHONPATH"
    else
        export PYTHONPATH=$SRCDIR:$PYTHONPATH
    fi
else
    export PYTHONPATH=$SRCDIR
fi