view docs/tutorial/testlib/pythonpath.sh @ 6937:47b41d441ff3 stable tip

changelog: add evolve 11.1.6 items
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 22 Nov 2024 18:02:25 +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