axmol/tools/console/bin/adxe

22 lines
409 B
Plaintext
Raw Normal View History

2021-05-18 18:08:59 +08:00
#!/bin/bash -l
ADXE_CONSOLE_BIN_DIRECTORY=$(dirname "$0")
ADXE_CONSOLE_BIN_DIRECTORY=$(cd "$ADXE_CONSOLE_BIN_DIRECTORY" && pwd -P)
if hash python2 2>/dev/null; then
PYTHON=python2
else
if hash python 2>/dev/null; then
VERSION="python --version"
PYTHON=python
else
echo "Python 2+ required."
exit 1
fi
fi
$PYTHON "$ADXE_CONSOLE_BIN_DIRECTORY/adxe.py" "$@"