tests/testlib/pythonpath.sh
author Boris Feld <boris.feld@octobus.net>
Thu, 24 Aug 2017 09:12:09 +0200
changeset 2856 f6517779a7c4
parent 2046 994d81caec68
child 4332 9980df8eda98
permissions -rw-r--r--
warning: rename warning message divergent has been renamed into contentdivergent. Use their renamed counterpart in warning message for new unstable changesets. Renaming done according to https://www.mercurial-scm.org/wiki/CEDVocabulary

# 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