tests/testlib/pythonpath.sh
author Boris Feld <boris.feld@octobus.net>
Fri, 22 Nov 2019 18:56:42 +0100
changeset 5226 38d225efcea9
parent 4336 33fc61e5e119
child 5316 277b45cf0dda
permissions -rw-r--r--
tutorial: compile the tutorial in rst so it can be included

# 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