Use the program search path to find the Python 3 interpreter.
Patch created mechanically by running:
$ sed -i "s,^#\!/usr/bin/\(env\ \)\?python$,#\!/usr/bin/env python3," \
$(git grep -l 'if __name__.*__main__')
Reported-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
Suggested-by: Stefan Hajnoczi <stefanha@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <
20200130163232.10446-5-philmd@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# Travis YAML config parser
#
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# QAPI parser test harness
#
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# CentOS image
#
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# Fedora VM image
#
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# FreeBSD VM image
#
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# NetBSD VM image
#
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# OpenBSD VM image
#
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# Ubuntu i386 image
#