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