Detect correct Python version #2

Merged
svelt merged 3 commits from devel into stable 2024-03-25 15:44:30 +00:00

View file

@ -1,4 +1,11 @@
#!/usr/bin/env python3
#!/bin/sh
'''':
for pyint in /usr/libexec/platform-python python3 python python2; do
command -v $pyint >/dev/null 2>&1 && exec $pyint "$0" "$@"
done
echo "$0: No python could be found" >&2
exit 1
# '''
import argparse
import os