tests: Add code coverage for Python.
[cascardo/ovs.git] / tests / atlocal.in
1 # -*- shell-script -*-
2 HAVE_OPENSSL='@HAVE_OPENSSL@'
3 HAVE_PYTHON='@HAVE_PYTHON@'
4 PERL='@PERL@'
5
6 if test x"$PYTHON" = x; then
7     PYTHON='@PYTHON@'
8 fi
9
10 PYTHONPATH=$abs_top_srcdir/python:$abs_top_builddir/tests:$PYTHONPATH
11 export PYTHONPATH
12
13 PYTHONIOENCODING=utf_8
14 export PYTHONIOENCODING
15
16 if test $HAVE_PYTHON = yes; then
17     if python -m argparse 2>/dev/null; then
18         :
19     else
20         PYTHONPATH=$PYTHONPATH:$abs_top_srcdir/python/compat
21         export PYTHONPATH
22     fi
23 fi