Detect correct Python version #2

Merged
svelt merged 3 commits from devel into stable 2024-03-25 15:44:30 +00:00
Showing only changes of commit 76065290c5 - Show all commits

View file

@ -1,7 +1,7 @@
#!/bin/sh
'''':
for pyint in python3 python python2; do
which $pyint >/dev/null 2>&1 && exec $pyint "$0" "$@"
command -v $pyint >/dev/null 2>&1 && exec $pyint "$0" "$@"
done
echo "$0: No python could be found" >&2
exit 1