From d1cce1975135f6d7c135ea9e9c9e7a641a9bdc46 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Wed, 17 Sep 2025 10:48:39 +1200 Subject: [PATCH] examples: use consistent shebang, set exe flag This is just makes the examples consistent. --- examples/do_orbit.py | 2 ++ examples/gripper.py | 0 examples/highres_imu.py | 2 ++ examples/offboard_from_csv/offboard_from_csv.py | 2 ++ examples/px4_ev_automation.py | 2 +- examples/px4_ev_automation_keyboard.py | 2 +- examples/upload_params.py | 2 +- examples/winch.py | 0 8 files changed, 9 insertions(+), 3 deletions(-) mode change 100644 => 100755 examples/gripper.py mode change 100644 => 100755 examples/highres_imu.py mode change 100644 => 100755 examples/offboard_from_csv/offboard_from_csv.py mode change 100644 => 100755 examples/px4_ev_automation.py mode change 100644 => 100755 examples/px4_ev_automation_keyboard.py mode change 100644 => 100755 examples/winch.py diff --git a/examples/do_orbit.py b/examples/do_orbit.py index fba44ade..d824308b 100755 --- a/examples/do_orbit.py +++ b/examples/do_orbit.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + import asyncio from mavsdk import System from mavsdk.action import OrbitYawBehavior diff --git a/examples/gripper.py b/examples/gripper.py old mode 100644 new mode 100755 diff --git a/examples/highres_imu.py b/examples/highres_imu.py old mode 100644 new mode 100755 index 3cc343eb..b23ead3d --- a/examples/highres_imu.py +++ b/examples/highres_imu.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + import asyncio from mavsdk import System diff --git a/examples/offboard_from_csv/offboard_from_csv.py b/examples/offboard_from_csv/offboard_from_csv.py old mode 100644 new mode 100755 index 92877e9b..de98bf80 --- a/examples/offboard_from_csv/offboard_from_csv.py +++ b/examples/offboard_from_csv/offboard_from_csv.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + """ Script: offboard_from_csv.py Author: Alireza Ghaderi diff --git a/examples/px4_ev_automation.py b/examples/px4_ev_automation.py old mode 100644 new mode 100755 index 54468172..69f67853 --- a/examples/px4_ev_automation.py +++ b/examples/px4_ev_automation.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ This example can be used to switch between External Vision or diff --git a/examples/px4_ev_automation_keyboard.py b/examples/px4_ev_automation_keyboard.py old mode 100644 new mode 100755 index 7d4dc827..d57164a5 --- a/examples/px4_ev_automation_keyboard.py +++ b/examples/px4_ev_automation_keyboard.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ This example can be used to switch between External Vision or MOCAP (EV) diff --git a/examples/upload_params.py b/examples/upload_params.py index ba33d103..894c2263 100755 --- a/examples/upload_params.py +++ b/examples/upload_params.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import asyncio import argparse diff --git a/examples/winch.py b/examples/winch.py old mode 100644 new mode 100755