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)
|
|
|
|
|
2022-05-15 15:40:50 +08:00
|
|
|
if hash python3 2>/dev/null; then
|
|
|
|
PYTHON=python3
|
|
|
|
elif hash python2 2>/dev/null; then
|
2021-05-18 18:08:59 +08:00
|
|
|
PYTHON=python2
|
2022-05-15 15:40:50 +08:00
|
|
|
elif hash python 2>/dev/null; then
|
|
|
|
PYTHON=python
|
2021-05-18 18:08:59 +08:00
|
|
|
else
|
2022-05-15 15:40:50 +08:00
|
|
|
echo "Python 2+ required."
|
|
|
|
exit 1
|
2021-05-18 18:08:59 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
$PYTHON "$ADXE_CONSOLE_BIN_DIRECTORY/adxe.py" "$@"
|
|
|
|
|