Merge pull request 'Detect correct Python version' (#2) from devel into stable

Reviewed-on: #2
This commit is contained in:
Sven Velt 2024-03-25 15:44:29 +00:00
commit baa916df81

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