]> git.lizzy.rs Git - rust.git/blobdiff - x
Rollup merge of #103827 - compiler-errors:rpitit-substs-compat, r=wesleywiser
[rust.git] / x
diff --git a/x b/x
index 704d0f791f333d0ddca4c333a16fdf62643bb4c7..4309b82627c9c47917df4ef29c9ef8c4a3020544 100755 (executable)
--- a/x
+++ b/x
@@ -29,5 +29,11 @@ for SEARCH_PYTHON in py python3 python python2; do
         exec "$python" $extra_arg "$xpy" "$@"
     fi
 done
+
+python=$(bash -c "compgen -c python" | grep '^python[2-3]\.[0-9]\+$' | head -n1)
+if ! [ "$python" = "" ]; then
+    exec "$python" "$xpy" "$@"
+fi
+
 echo "$0: error: did not find python installed" >&2
 exit 1