X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fatlocal.in;h=1d37b59a74aa18096cd461bdf54f4ad88a552aee;hb=200940deb7c85de7afe3e52edabf574088ac01e3;hp=9c9f654cc645235c31fe451e2d252aa7b9974b54;hpb=be44585c21cc8dbe097a460a930696f0350dc12d;p=openvswitch diff --git a/tests/atlocal.in b/tests/atlocal.in index 9c9f654c..1d37b59a 100644 --- a/tests/atlocal.in +++ b/tests/atlocal.in @@ -2,10 +2,22 @@ HAVE_OPENSSL='@HAVE_OPENSSL@' HAVE_PYTHON='@HAVE_PYTHON@' PERL='@PERL@' -PYTHON='@PYTHON@' -PYTHONPATH=$PYTHONPATH:$abs_top_srcdir/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