tests/testlib/pythonpath.sh
author Anton Shestakov <av6@dwimlabs.net>
Thu, 28 Nov 2019 11:37:56 +0700
changeset 5052 b9a7fb0a0a49
parent 4336 33fc61e5e119
child 5316 277b45cf0dda
permissions -rw-r--r--
evolve: use obsutil._getobsfate() directly It's been there since 4.5 (265cd9e19d26), we can safely rely on it. It's necessary though to use the correct spelling of superseded.

# 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