docs/tutorial/testlib/pythonpath.sh
author Martin von Zweigbergk <martinvonz@google.com>
Fri, 12 Jul 2019 23:24:04 -0700
changeset 4742 db3e7f6b5ceb
parent 3376 aad37ffd7d58
child 5227 b24de4b465ea
permissions -rw-r--r--
py3: switch from iteritems() to items() in the topics extension The only remaining iteritems() call is on branchmap. That will be dealt with in the next patch.

# 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