Detect python version
This commit is contained in:
parent
ba1cff4d61
commit
9862a7bade
|
@ -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 argparse
|
||||||
import os
|
import os
|
||||||
|
|
Loading…
Reference in a new issue