tests/testlib/pythonpath.sh
author Anton Shestakov <av6@dwimlabs.net>
Thu, 13 Feb 2020 19:04:00 +0800
changeset 5128 7c2ca5e3a7ba
parent 4336 33fc61e5e119
child 5316 277b45cf0dda
permissions -rw-r--r--
packaging: simply prune some directories in MANIFEST.in in a dedicated block exclude+recursive-exclude is basically prune.

# 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