Skip to content

Commit

Permalink
reflecting review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
miyakoshi-dev committed Jul 19, 2023
1 parent 735fbdf commit 6e68504
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CARET_trace/src/ros_trace_points.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ static bool is_python3_command()
}

// Check if the right side of the last '/' in cmdline[0] matches 'python3'.
// pattern 1: /usr/bin/python3 /opt/ros/humble/bin/ros2 launch ...
// pattern 2: python3 /opt/ros/humble/lib/rosbridge_server/rosbridge_websocket ...
if (cmd_line.size() < 1) {
return false;
}
// case 1 : /usr/bin/python3 /opt/ros/humble/bin/ros2 launch ...
// case 2 : python3 /opt/ros/humble/lib/rosbridge_server/rosbridge_websocket ...
if (cmd_line[0].find("python3") == string::npos) {
return false;
}
Expand Down

0 comments on commit 6e68504

Please sign in to comment.