view docs/tutorial/testlib/pythonpath.sh @ 6438:eb221b2c1f81 stable 11.0.0

packaging: prepare evolve 11.0.0, topic 1.0.0
author Anton Shestakov <av6@dwimlabs.net>
date Sun, 26 Feb 2023 22:31:59 +0400
parents aad37ffd7d58
children
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
    export PYTHONPATH=$SRCDIR:$PYTHONPATH
else
    export PYTHONPATH=$SRCDIR
fi