tests/testlib/pythonpath.sh
branchmercurial-4.6
changeset 4360 522abf1d70b7
parent 4336 33fc61e5e119
child 5316 277b45cf0dda
equal deleted inserted replaced
4313:4a740f9eee49 4360:522abf1d70b7
     1 # utility to setup pythonpath to point into the tested repository
     1 # utility to setup pythonpath to point into the tested repository
     2 
     2 
     3 export SRCDIR=`dirname $TESTDIR`
     3 export SRCDIR="`dirname $TESTDIR`"
     4 if [ -n "$PYTHONPATH" ]; then
     4 if [ -n "$PYTHONPATH" ]; then
     5     export HGTEST_ORIG_PYTHONPATH=$PYTHONPATH
     5     export HGTEST_ORIG_PYTHONPATH=$PYTHONPATH
     6     export PYTHONPATH=$SRCDIR:$PYTHONPATH
     6     if uname -o | grep -q Msys; then
       
     7         export PYTHONPATH="$SRCDIR;$PYTHONPATH"
       
     8     else
       
     9         export PYTHONPATH=$SRCDIR:$PYTHONPATH
       
    10     fi
     7 else
    11 else
     8     export PYTHONPATH=$SRCDIR
    12     export PYTHONPATH=$SRCDIR
     9 fi
    13 fi