X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fatlocal.in;h=7f09143f4711d206ed046981372ad986d12679bd;hb=816fd533f85923c03cf8d9d6450bd9a0845d5160;hp=8ac4f676b2927c5ef1e62962a8e0e3d1bd0eff1e;hpb=a0bc29a541fc7dc6e20137d5558e2094d614e6ab;p=openvswitch diff --git a/tests/atlocal.in b/tests/atlocal.in index 8ac4f676..7f09143f 100644 --- a/tests/atlocal.in +++ b/tests/atlocal.in @@ -3,3 +3,18 @@ HAVE_OPENSSL='@HAVE_OPENSSL@' HAVE_PYTHON='@HAVE_PYTHON@' PERL='@PERL@' PYTHON='@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