Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ datasets/labels/*
.tmp/
results/
# third_party/
third_party/
pretrained/
*.zip
vis/
Expand Down
3 changes: 3 additions & 0 deletions scripts/test_demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# Exit on error, undefined variables, and pipeline failures
set -euo pipefail

# Ensure VidBot root is on PYTHONPATH
export PYTHONPATH="/x2robot_v2/neo/VidBot:${PYTHONPATH:-}"
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The script hard-codes an absolute, machine-specific VidBot path in PYTHONPATH ("/x2robot_v2/neo/VidBot"), which will be incorrect for most checkouts and can even cause Python to import a different copy of the project if that path exists on a developer/CI machine. Please derive the repo root dynamically from the script location (or an env var override) and construct PYTHONPATH without introducing an empty entry (e.g., avoid a trailing ":" when PYTHONPATH is unset).

Suggested change
export PYTHONPATH="/x2robot_v2/neo/VidBot:${PYTHONPATH:-}"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="${VIDBOT_REPO_ROOT:-$(cd "$SCRIPT_DIR/.." && pwd)}"
if [ -n "${PYTHONPATH:-}" ]; then
export PYTHONPATH="$REPO_ROOT:$PYTHONPATH"
else
export PYTHONPATH="$REPO_ROOT"
fi

Copilot uses AI. Check for mistakes.

# Check if the --use_graspnet flag is passed as an argument
USE_GRASPNET=false
if [[ "$#" -gt 0 && "$1" == "--use_graspnet" ]]; then
Expand Down
Loading