Use the correct python interpreter in runtestdefaultsupprs.py
authorDodji Seketeli <dodji@redhat.com>
Wed, 16 May 2018 12:24:31 +0000 (14:24 +0200)
committerDodji Seketeli <dodji@redhat.com>
Wed, 16 May 2018 12:24:31 +0000 (14:24 +0200)
* configure.ac: Make the PYTHON environemnt variable usable in
auto-generated files.
* tests/runtestdefaultsupprs.py.in: Use the python interpreter
detected by configure.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
configure.ac
tests/runtestdefaultsupprs.py.in

index 0350d80..1fbd3bd 100644 (file)
@@ -462,7 +462,7 @@ fi
 AM_CONDITIONAL(ENABLE_FEDABIPKGDIFF, test x$ENABLE_FEDABIPKGDIFF = xyes)
 AM_CONDITIONAL(ENABLE_RUNNING_TESTS_WITH_PY3, test x$RUN_TESTS_WITH_PY3 = xyes)
 AM_CONDITIONAL(ENABLE_PYTHON3_INTERPRETER, test x$PYTHON3_INTERPRETER != xno)
-
+AC_SUBST(PYTHON)
 
 dnl Check for dependency: libzip
 LIBZIP_VERSION=0.10.1
index 8b97fba..d67a105 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env @PYTHON@
 
 '''Runs tests for the default suppression specifications of libabigail.