Detect python version

This commit is contained in:
Sven Velt 2022-01-31 15:21:30 +01:00
parent ba1cff4d61
commit 9862a7bade

View file

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