From e7890102950c892159c38474d0519aed403a4b9d Mon Sep 17 00:00:00 2001 From: TSC21 Date: Mon, 13 Jan 2020 11:36:30 +0000 Subject: [PATCH] rostests: add PYTHONPATH export path so to find Python 2 packages --- test/rostest_px4_run.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/rostest_px4_run.sh b/test/rostest_px4_run.sh index 9f7a4f8141..517d28a599 100755 --- a/test/rostest_px4_run.sh +++ b/test/rostest_px4_run.sh @@ -6,6 +6,9 @@ PX4_SRC_DIR=${DIR}/.. source /opt/ros/${ROS_DISTRO:-kinetic}/setup.bash source ${PX4_SRC_DIR}/Tools/setup_gazebo.bash ${PX4_SRC_DIR} ${PX4_SRC_DIR}/build/px4_sitl_default +# Make sure that the PYTHONPATH points to Python 2 packages dir +export PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/dist-packages + export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:${PX4_SRC_DIR}:${PX4_SRC_DIR}/Tools/sitl_gazebo export ROS_LOG_DIR="$HOME/.ros/ros_logs"