docs/tutorial/testlib/pythonpath.sh
author Martin von Zweigbergk <martinvonz@google.com>
Thu, 11 Jul 2019 14:46:17 -0700
changeset 4747 fa6aafa2857d
parent 3376 aad37ffd7d58
child 5227 b24de4b465ea
permissions -rw-r--r--
py3: replace str(ctx) by bytes(ctx) These are all for messages to the user and we don't want unicode for that.

# 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