Switch to use of python3
Update each fan application that uses a python script to parse/generate
their respective configuration to use python3.
*Decoupling the fan presence application from using sdbusplus python
libraries is outside the scope of this change and could be rebased
before this if necessary.
Change-Id: Ic2fda095daf0331d08146f0020b4ff0a88995bb3
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/configure.ac b/configure.ac
index d60cd2a..7f0585f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,8 +18,8 @@
AC_PROG_MAKE_SET
# Python
-AM_PATH_PYTHON([2.7], [AC_SUBST([PYTHON], [echo "$PYTHON"])],
-[AC_MSG_ERROR([Minimum python version(2.7) not found])])
+AM_PATH_PYTHON([3], [AC_SUBST([PYTHON], [echo "$PYTHON"])],
+[AC_MSG_ERROR([Minimum python version(3) not found])])
# Checks for typedefs, structures, and compiler characteristics.
AX_CXX_COMPILE_STDCXX_17([noext])
diff --git a/control/gen-fan-zone-defs.py b/control/gen-fan-zone-defs.py
index 733a29b..72c416d 100755
--- a/control/gen-fan-zone-defs.py
+++ b/control/gen-fan-zone-defs.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
This script reads in fan definition and zone definition YAML
diff --git a/monitor/gen-fan-monitor-defs.py b/monitor/gen-fan-monitor-defs.py
index de25fef..6793169 100755
--- a/monitor/gen-fan-monitor-defs.py
+++ b/monitor/gen-fan-monitor-defs.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
import os
import sys
diff --git a/presence/pfpgen.py b/presence/pfpgen.py
index d40f1b1..1080a22 100755
--- a/presence/pfpgen.py
+++ b/presence/pfpgen.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
'''
Phosphor Fan Presence (PFP) YAML parser and code generator.