X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fatlocal.in;h=7f09143f4711d206ed046981372ad986d12679bd;hb=6d4605fd85630eb3a9ec743763114f286373a544;hp=0166f0f0c32290d826482b4a02c314400995851a;hpb=8cdf0349740c3e1a73af9aa6209bb22be952cd37;p=openvswitch diff --git a/tests/atlocal.in b/tests/atlocal.in index 0166f0f0..7f09143f 100644 --- a/tests/atlocal.in +++ b/tests/atlocal.in @@ -9,3 +9,12 @@ 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