X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fatlocal.in;h=1d37b59a74aa18096cd461bdf54f4ad88a552aee;hb=2be393edd3a94772ef430054dc72ec794c450981;hp=8ac4f676b2927c5ef1e62962a8e0e3d1bd0eff1e;hpb=a0bc29a541fc7dc6e20137d5558e2094d614e6ab;p=openvswitch diff --git a/tests/atlocal.in b/tests/atlocal.in index 8ac4f676..1d37b59a 100644 --- a/tests/atlocal.in +++ b/tests/atlocal.in @@ -2,4 +2,22 @@ HAVE_OPENSSL='@HAVE_OPENSSL@' 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