tests/testlib/pythonpath.sh
author Anton Shestakov <av6@dwimlabs.net>
Wed, 11 Mar 2020 18:03:52 +0700
changeset 5300 372dc6c5692a
parent 4336 33fc61e5e119
child 5316 277b45cf0dda
permissions -rw-r--r--
obshistory: rename node/ctx-displaying functions Not just for debug, and yes we know it's obshistory-related.

# 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