fix rosservice path for new deps

This commit is contained in:
Ken Conley 2011-10-06 03:01:17 +00:00
parent da5db91807
commit 38f5996731
1 changed files with 4 additions and 3 deletions

View File

@ -34,10 +34,11 @@
# As rostopic is used in tab completion, we manually calculate the
# sys.path to reduce load latency
import os, sys, roslib.stacks
d = roslib.stacks.get_stack_dir('ros_comm')
import os, sys, rospkg
rosstack = rospkg.RosStack()
d = rosstack.get_path('ros_comm')
tools_d = os.path.join(d, 'tools')
paths = [os.path.join(tools_d, p, 'src') for p in ('rosbag', 'rosmsg', 'rosservice', 'rostopic')]
paths = [os.path.join(tools_d, p, 'src') for p in ('rosbag', 'rosmsg', 'rosservice', 'rostopic', 'rosgraph')]
paths.append(os.path.join(d, 'clients', 'rospy', 'src'))
paths.append(os.path.join(d, 'messages', 'rosgraph_msgs', 'src'))
paths.append(os.path.join(d, 'messages', 'std_msgs', 'src'))