view tests/testlib/pythonpath.sh @ 2720:db3830646e34 stable

tutorial: use rm instead of 'hg rm' for an untracked temporary file
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Sun, 09 Jul 2017 14:20:24 +0300
parents 994d81caec68
children 9980df8eda98
line wrap: on
line source

# 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