view tests/testlib/pythonpath.sh @ 4954:a76ed637acba

obslog: phase divergence fix for b135591bec1a I forgot to pull the latest version before publishing the topic :-(
author Martin von Zweigbergk <martinvonz@google.com>
date Sat, 16 Nov 2019 01:44:31 +0100
parents 33fc61e5e119
children 277b45cf0dda
line wrap: on
line source

# 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