tests/testlib/pythonpath.sh
author Matt Harbison <matt_harbison@yahoo.com>
Sun, 21 Jan 2018 16:55:02 -0500
branchstable
changeset 3486 bee9fee8f36b
parent 2046 994d81caec68
child 4332 9980df8eda98
permissions -rw-r--r--
test: explicitly run HGEDITOR shell command with `sh` Otherwise Windows pops up the "What program do you want to use to open this?" dialog.

# 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