run mission_test over python2

This commit is contained in:
TSC21 2020-01-13 15:53:18 +00:00 committed by Nuno Marques
parent abda56b7a2
commit ed974d83f5
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python2
#***************************************************************************
#
# Copyright (c) 2015-2016 PX4 Development Team. All rights reserved.

View File

@ -7,7 +7,7 @@ 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 PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/dist-packages:/usr/local/lib/python2.7/dist-packages
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:${PX4_SRC_DIR}:${PX4_SRC_DIR}/Tools/sitl_gazebo