diff mbox series

[2/8] configure: set $PYTHON to a full path

Message ID 1562775267-1222-3-git-send-email-pbonzini@redhat.com
State New
Headers show
Series Proof of concept for Meson integration | expand

Commit Message

Paolo Bonzini July 10, 2019, 4:14 p.m. UTC
This will make it possible to replace it in a shebang line.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/configure b/configure
index b0b8bdd..49cb3f3 100755
--- a/configure
+++ b/configure
@@ -918,7 +918,7 @@  for binary in "${PYTHON-python3}" python python2
 do
     if has "$binary"
     then
-        python="$binary"
+        python=$(command -v "$binary")
         break
     fi
 done