I Want To Heal 2 build v1.0.5 code
This commit is contained in:
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
PYTHON=""
|
||||
for candidate in \
|
||||
/Library/Frameworks/Python.framework/Versions/3.12/bin/python3 \
|
||||
/usr/local/bin/python3 \
|
||||
/usr/bin/python3 \
|
||||
python3
|
||||
do
|
||||
if command -v "$candidate" >/dev/null 2>&1 && "$candidate" - <<'PY' >/dev/null 2>&1
|
||||
import tkinter
|
||||
PY
|
||||
then
|
||||
PYTHON="$candidate"
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ -z "$PYTHON" ]]; then
|
||||
echo "No Python with Tkinter found. Install python.org Python 3, then retry." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exec "$PYTHON" scripts/deploy_gui.py
|
||||
Reference in New Issue
Block a user