File: pythonpath.sh

package info (click to toggle)
mercurial-evolve 11.1.9-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,964 kB
  • sloc: python: 14,961; javascript: 2,579; sh: 353; makefile: 24
file content (9 lines) | stat: -rw-r--r-- 256 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
# 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