Skip to content
Merged
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
6 changes: 3 additions & 3 deletions tools/debugger/server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ fi
CMD_DIR="$RELAY_DIR/cmd"
RESULT_DIR="$RELAY_DIR/result"

echo "[server] Workdir: $WORKDIR"

cleanup() {
echo "[server] Shutting down..."
# Kill any running command (guard all reads with || true to prevent set -e
Expand Down Expand Up @@ -97,8 +99,7 @@ mkdir -p "$CMD_DIR" "$RESULT_DIR"

# Ensure modelopt is editable-installed from WORKDIR
check_modelopt_local() {
# Clear PYTHONPATH and use -I to validate actual install state, not source tree
PYTHONPATH="" python -I -c "
python -c "
import modelopt, os, sys
actual = os.path.realpath(modelopt.__path__[0])
expected = os.path.realpath('$WORKDIR')
Expand All @@ -124,7 +125,6 @@ fi
# Signal that server is ready
echo "$(hostname):$$:$(date -Iseconds)" > "$RELAY_DIR/server.ready"
echo "[server] Ready. Relay dir: $RELAY_DIR"
echo "[server] Workdir: $WORKDIR"
echo "[server] Waiting for client handshake..."

# Wait for client handshake
Expand Down
Loading