Skip to content

Comments

添加路径#5

Open
BraveBoBo wants to merge 1 commit intoethz-mrl:mainfrom
BraveBoBo:dev
Open

添加路径#5
BraveBoBo wants to merge 1 commit intoethz-mrl:mainfrom
BraveBoBo:dev

Conversation

@BraveBoBo
Copy link

No description provided.

Copilot AI review requested due to automatic review settings January 28, 2026 09:21
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to make the demo script runnable by ensuring the project root is discoverable by Python, and updates ignore rules for third-party dependencies.

Changes:

  • Export PYTHONPATH in scripts/test_demo.sh to include the VidBot root path.
  • Add third_party/ to .gitignore.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
scripts/test_demo.sh Adds a PYTHONPATH export intended to make imports work when running demo commands.
.gitignore Ignores the third_party/ directory.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant