Skip to content

Instantly share code, notes, and snippets.

@pombredanne
Forked from tritium21/pyshbang
Created September 10, 2019 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pombredanne/8c8502d28abb587d56a0a8dd65a8baa7 to your computer and use it in GitHub Desktop.
Save pombredanne/8c8502d28abb587d56a0a8dd65a8baa7 to your computer and use it in GitHub Desktop.
#!/bin/sh
""":"
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" "$@"
echo "Error: configure wrapper requires python"
exec echo "Either install python, or use cmake directly"
":"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment