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"