Fix - Shell scripts to check python binary in windows, closes #187
This commit is contained in:
parent
8454021d66
commit
c3ef361ef1
|
@ -7,9 +7,9 @@
|
|||
# is useful because we don't know the name of the python binary.
|
||||
|
||||
''':' # begin python string; this line is interpreted by the shell as `:`
|
||||
which python3 >/dev/null 2>&1 && exec python3 "$0" "$@"
|
||||
which python >/dev/null 2>&1 && exec python "$0" "$@"
|
||||
which python2 >/dev/null 2>&1 && exec python2 "$0" "$@"
|
||||
which python3 >/dev/null 2>&1 && exec python3 "$0" "$@"
|
||||
>&2 echo "error: cannot find python"
|
||||
exit 1
|
||||
'''
|
||||
|
|
Loading…
Reference in a new issue