This piece of code is redundant and results in a garbage error
message on systems that do not have a default python executable.

Signed-off-by: K. Kahurani <k.kahur...@gmail.com>
---
 tools/configure | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/tools/configure b/tools/configure
index 82947ad..a1f36d1 100755
--- a/tools/configure
+++ b/tools/configure
@@ -6931,10 +6931,8 @@ fi
 if echo "$PYTHON" | grep -q "^/"; then :
 
 else
-  PYTHON=`type -p "$PYTHON"`
+  PYTHONPATH=`type -p "$PYTHON"`
 fi
-PYTHONPATH=$PYTHON
-PYTHON=`basename $PYTHONPATH`
 
 # Extract the first word of "$PYTHON", so it can be a program name with args.
 set dummy $PYTHON; ac_word=$2
-- 
2.17.1


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to