docs/tutorial/testlib/pythonpath.sh
author Joerg Sonnenberger <joerg@bec.de>
Tue, 05 May 2020 20:25:33 +0200
changeset 5335 3847dedd12d7
parent 3376 aad37ffd7d58
child 5227 b24de4b465ea
permissions -rw-r--r--
changelog: adjust The changes only apply to newly created sqlite database. There are code pathes that drop existing ones, but that's a more complicated condition.

# 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