MT#57437 Upstream: apps/ivr fix for Python3.10 and higher

Backport from the upstream to fix Python versioning.

Upstream commit: e943f98a8d09a06c88eca10d93e51f7a13056e31

Change-Id: Ia7d6b49270c9f3fa3cc7cb8d921334b2afc1db9b
mr11.4.1
Donat Zenichev 3 years ago
parent f3a48f2a30
commit 285fb7e2ee

@ -1,6 +1,9 @@
# Python version: 2.5, 2.4 or 2.3
# Python version: 2.3, 2.4, 2.5, and 3.x
#
PYTHON_VERSION ?= $(shell python2 -c 'import sys;print sys.version[0:3]')
PYTHON_VERSION ?= $(shell python -c 'import sys;print sys.version[0:3]')
PYTHON_VERSION ?= $(shell python3 -c 'import sys;print("%d.%d" % (sys.version_info.major,sys.version_info.minor))')
PY_VER = $(PYTHON_VERSION)
PY_EXE = python$(PY_VER)

Loading…
Cancel
Save