tests/testlib/pythonpath.sh
author Matt Harbison <matt_harbison@yahoo.com>
Sat, 27 Apr 2019 22:33:16 -0400
changeset 4623 0adb59b55add
parent 4336 33fc61e5e119
child 5316 277b45cf0dda
permissions -rw-r--r--
revset: add `predecessor` aliases for `precursors` and `allprecursors` Per https://www.mercurial-scm.org/wiki/CEDVocabulary

# 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