X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fatlocal.in;h=7f09143f4711d206ed046981372ad986d12679bd;hb=816fd533f85923c03cf8d9d6450bd9a0845d5160;hp=f1c045766e331f43dd560b8eee980ebe364153be;hpb=991559357f6a03c3a5b70c053c8c2554aa8d5ee4;p=openvswitch diff --git a/tests/atlocal.in b/tests/atlocal.in index f1c04576..7f09143f 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=$PYTHONPATH:$abs_top_srcdir/python:$abs_top_builddir/tests 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