Skip to content

Run a virtual iPhone on an Apple Silicon Mac.

Swift

venv: Fix `python3` locating for enviornments using `uv`

zqxwce120d6f986207
diff --git a/scripts/setup_venv.sh b/scripts/setup_venv.sh
index 84d9de22..96fcf569 100755
--- a/scripts/setup_venv.sh
+++ b/scripts/setup_venv.sh
@@ -15,7 +15,7 @@ VENV_DIR="${PROJECT_ROOT}/.venv"
REQUIREMENTS="${PROJECT_ROOT}/requirements.txt"
# Use system Python3
-PYTHON="$(command -v python3)"
+PYTHON="$(readlink -f "$(which python3)")"
if [[ -z "${PYTHON}" ]]; then
echo "Error: python3 not found in PATH"
exit 1