1From 888c94e7a121d96aa88f84c58fe7e2bd771fc5ac Mon Sep 17 00:00:00 2001 2From: Julien Olivain <ju.o@free.fr> 3Date: Fri, 25 Aug 2023 21:56:37 +0200 4Subject: [PATCH] TOOLS: d2c.py: explicitly use the python3 interpreter 5 6When compiling Xvisor on a system not providing the "python" 7interpreter binary, compilation fails with output: 8 9 (d2c) core/vio/keymaps/modifiers.c 10 /bin/sh: 1: /build/xvisor-0.3.2/tools/scripts/d2c.py: not found 11 12This commit fixes the issue following the PEP 394 recommendation: 13https://peps.python.org/pep-0394/ 14 15It sets the "shebang" to `#! /usr/bin/env python3` to allow using other 16interpreters in the PATH, or virtual environment. 17 18Signed-off-by: Julien Olivain <ju.o@free.fr> 19 20Upstream: https://github.com/xvisor/xvisor/commit/888c94e7a121d96aa88f84c58fe7e2bd771fc5ac 21Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 22--- 23 tools/scripts/d2c.py | 2 +- 24 1 file changed, 1 insertion(+), 1 deletion(-) 25 26diff --git a/tools/scripts/d2c.py b/tools/scripts/d2c.py 27index b46a7bc468..daac4a5450 100755 28--- a/tools/scripts/d2c.py 29+++ b/tools/scripts/d2c.py 30@@ -1,4 +1,4 @@ 31-#!/usr/bin/python 32+#! /usr/bin/env python3 33 #/** 34 # Copyright (c) 2013 Anup Patel. 35 # All rights reserved. 36