X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Fatlocal.in;h=aa86251cf8fa1409bad05f492f3b1e11a4fb634c;hb=969b5ed3b5b6502743870b4290c634cd2352e8c2;hp=f1c045766e331f43dd560b8eee980ebe364153be;hpb=991559357f6a03c3a5b70c053c8c2554aa8d5ee4;p=sliver-openvswitch.git diff --git a/tests/atlocal.in b/tests/atlocal.in index f1c045766..aa86251cf 100644 --- a/tests/atlocal.in +++ b/tests/atlocal.in @@ -4,5 +4,17 @@ HAVE_PYTHON='@HAVE_PYTHON@' PERL='@PERL@' PYTHON='@PYTHON@' -PYTHONPATH=$PYTHONPATH:$abs_top_srcdir/python +PYTHONPATH=$abs_top_srcdir/python:$abs_top_builddir/tests:$PYTHONPATH export PYTHONPATH + +PYTHONIOENCODING=utf_8 +export PYTHONIOENCODING + +if test $HAVE_PYTHON = yes; then + if python -m argparse 2>/dev/null; then + : + else + PYTHONPATH=$PYTHONPATH:$abs_top_srcdir/python/compat + export PYTHONPATH + fi +fi