tests/testlib/pythonpath.sh
author Martin von Zweigbergk <martinvonz@google.com>
Thu, 07 Nov 2019 13:40:53 -0800
changeset 4951 7bfd3fed5d1f
parent 4336 33fc61e5e119
child 5316 277b45cf0dda
permissions -rw-r--r--
obslog: make {succnodes} be full hex nodes It should be up to the user to shorten the nodeid as much or as little as they like.

# 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