mirror of
1
0
Fork 0

Fix - Shell scripts to check python binary in windows, closes #187

This commit is contained in:
Shiva Poudel 2019-06-25 16:57:23 +05:45
parent 8454021d66
commit c3ef361ef1
1 changed files with 1 additions and 1 deletions

View File

@ -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
'''