docs/tutorial/testlib/pythonpath.sh
author Pierre-Yves David <pierre-yves.david@octobus.net>
Tue, 21 Aug 2018 04:05:12 +0200
changeset 3982 7b1af75e12a9
parent 3376 aad37ffd7d58
child 5227 b24de4b465ea
permissions -rw-r--r--
compat: import the module dagutil module in evolve Discovery code is core have been rewritten to no longer depends on dagutil and the module have been removed. This break evolve's obsmarker discovery (older version of the discovery use the same concept).. A quick work around is to import the dagutil module in evolve and use that for now.

# 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