docs/tutorial/testlib/pythonpath.sh
author Pulkit Goyal <pulkit@yandex-team.ru>
Sat, 18 Aug 2018 21:01:14 +0530
branchstable
changeset 3977 a0a4f4de9ea3
parent 3376 aad37ffd7d58
child 5227 b24de4b465ea
permissions -rw-r--r--
evolvecmd: import mercurial.node module as nodemod We use node as a variable name at few places and the conflicts with variable name are not good. Moreover this practice is followed in core mercurial also.

# 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