axmol/tools/console/bin/axis

19 lines
397 B
Plaintext
Raw Normal View History

2022-07-07 20:51:47 +08:00
#!/bin/bash -l
AXIS_CONSOLE_BIN_DIRECTORY=$(dirname "$0")
AXIS_CONSOLE_BIN_DIRECTORY=$(cd "$AXIS_CONSOLE_BIN_DIRECTORY" && pwd -P)
if hash python3 2>/dev/null; then
PYTHON=python3
elif hash python2 2>/dev/null; then
PYTHON=python2
elif hash python 2>/dev/null; then
PYTHON=python
else
echo "Python 2+ required."
exit 1
fi
$PYTHON "$AXIS_CONSOLE_BIN_DIRECTORY/axis.py" "$@"