Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

updated for mac

Dillon DuPont4be4f00f468a
diff --git a/.devcontainer/post-install.sh b/.devcontainer/post-install.sh
index ba16a25cff..78968b4a19 100644
--- a/.devcontainer/post-install.sh
+++ b/.devcontainer/post-install.sh
@@ -53,7 +53,12 @@ if [ ! -f "$DEVCONTAINER_JSON" ];then
fi
# open devcontainer
-HOST_PATH=$(echo $(wslpath -w $PWD) | sed -e 's,\\,\\\\,g')
+if command -v wslpath >/dev/null 2>&1; then
+ HOST_PATH=$(echo $(wslpath -w $PWD) | sed -e 's,\\,\\\\,g')
+else
+ # Not on WSL, fallback for macOS/Linux
+ HOST_PATH="$PWD"
+fi
WORKSPACE="/workspaces/$(basename $PWD)"
URI_SUFFIX=