X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=tests%2Fatlocal.in;h=1d37b59a74aa18096cd461bdf54f4ad88a552aee;hb=200940deb7c85de7afe3e52edabf574088ac01e3;hp=1628ea55be8802e4824a84c5e930225cd2a7942a;hpb=bfe8e67ad595348f228938663956c3b8325997c5;p=openvswitch diff --git a/tests/atlocal.in b/tests/atlocal.in index 1628ea55..1d37b59a 100644 --- a/tests/atlocal.in +++ b/tests/atlocal.in @@ -1,6 +1,23 @@ # -*- shell-script -*- HAVE_OPENSSL='@HAVE_OPENSSL@' -HAVE_PCRE='@HAVE_PCRE@' HAVE_PYTHON='@HAVE_PYTHON@' PERL='@PERL@' -PYTHON='@PYTHON@' + +if test x"$PYTHON" = x; then + PYTHON='@PYTHON@' +fi + +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