docs/tutorial/testlib/pythonpath.sh
author Anton Shestakov <av6@dwimlabs.net>
Wed, 27 Mar 2019 20:52:30 +0800
branchstable
changeset 4450 9b0cde5efbc9
parent 3376 aad37ffd7d58
child 5227 b24de4b465ea
permissions -rw-r--r--
topicmap: add compatibility for branchcache that now uses self._entries

# 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