sync: auto-sync from DESKTOP-0O8A1RL at 2026-04-19 15:16:23
Author: Mike Swanson Machine: DESKTOP-0O8A1RL Timestamp: 2026-04-19 15:16:23
This commit is contained in:
@@ -37,12 +37,17 @@ fi
|
|||||||
|
|
||||||
echo -e "${GREEN}[OK]${NC} Working directory: $(pwd)"
|
echo -e "${GREEN}[OK]${NC} Working directory: $(pwd)"
|
||||||
|
|
||||||
# Detect Python interpreter (python3 on Mac/Linux, python on Windows)
|
# Detect Python interpreter — verify it actually runs (Windows Store stub passes command -v but fails to execute)
|
||||||
if command -v python3 >/dev/null 2>&1; then
|
PYTHON=""
|
||||||
PYTHON=python3
|
for candidate in python3 python; do
|
||||||
elif command -v python >/dev/null 2>&1; then
|
if command -v "$candidate" >/dev/null 2>&1; then
|
||||||
PYTHON=python
|
if "$candidate" -c "import sys; sys.exit(0)" >/dev/null 2>&1; then
|
||||||
else
|
PYTHON="$candidate"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if [ -z "$PYTHON" ]; then
|
||||||
echo -e "${RED}[ERROR]${NC} No Python interpreter found (need python or python3)"
|
echo -e "${RED}[ERROR]${NC} No Python interpreter found (need python or python3)"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user