tests/testlib/pythonpath.sh
changeset 2046 994d81caec68
child 4332 9980df8eda98
equal deleted inserted replaced
2045:db617700d318 2046:994d81caec68
       
     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