blob: 44ea7d0465bc87c172d62ff3dc2ae33d07cde919 [file] [log] [blame] [edit]
#!/bin/sh
# Copyright 2011 The Emscripten Authors. All rights reserved.
# Emscripten is available under two separate licenses, the MIT license and the
# University of Illinois/NCSA Open Source License. Both these licenses can be
# found in the LICENSE file.
#
# Entpy point for running python scripts on UNIX systems.
if [ -z $PYTHON ]; then
PYTHON=$(which python3)
fi
if [ -z $PYTHON ]; then
PYTHON=$(which python)
fi
if [ -z $PYTHON ]; then
PYTHON=$(which python2)
fi
if [ -z $PYTHON ]; then
print 'unable to find python in $PATH'
exit 1
fi
exec $PYTHON "$0.py" "$@"