Vale: amend pre-commit hook to detect Python interpreter portably


Probe python3, py, and finally python to make sure the hook works
on Linux/macOS as well as Windows.

Change-Id: I12ac5997b393a7ec051377b70b5e009288c8f880
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commit22164dcf49f5a06f381a7d815bc0938261b34cb7
parente2e09becf57838d36bea50a8d8df938663156a89
authorVenugopal Shivashankar <Venugopal.Shivashankar@qt.io>
committerVenugopal Shivashankar <Venugopal.Shivashankar@qt.io>
commit timeFri, 17 Apr 2026 13:21:28 +0000