docs/tutorial/testlib/pythonpath.sh
changeset 3376 aad37ffd7d58
child 5227 b24de4b465ea
equal deleted inserted replaced
3375:1cb549cd6236 3376:aad37ffd7d58
       
     1 # utility to setup pythonpath to point into the tested repository
       
     2 
       
     3 export SRCDIR=`dirname $TESTDIR`
       
     4 if [ -n "$PYTHONPATH" ]; then
       
     5     export HGTEST_ORIG_PYTHONPATH=$PYTHONPATH
       
     6     export PYTHONPATH=$SRCDIR:$PYTHONPATH
       
     7 else
       
     8     export PYTHONPATH=$SRCDIR
       
     9 fi