From 9f3498112b756269215ddc8e5bc6513f378e6096 Mon Sep 17 00:00:00 2001 From: ES-Alexander Date: Tue, 5 Nov 2024 04:44:40 +1100 Subject: [PATCH] hacky workaround while waiting for ArduPilot#27226 --- scripts/run_parsers.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/run_parsers.py b/scripts/run_parsers.py index 5ed5e77..a6eb4f9 100755 --- a/scripts/run_parsers.py +++ b/scripts/run_parsers.py @@ -71,7 +71,11 @@ def run(self): last_ground_change = Groundskeeper.get_last_ground_change(git.Repo(Path(__file__).parent.parent)) # Prepare for MAVLink parsing - always use the latest script (since it might cover new messages) - shutil.copy(f'{self.repository_path}/Tools/scripts/mavlink_parse.py', self.temp_folder) + #shutil.copy(f'{self.repository_path}/Tools/scripts/mavlink_parse.py', self.temp_folder) + # TEMPORARY WORKAROUND UNTIL ArduPilot/ardupilot#27226 IS MERGED + from urllib.request import urlretrieve + urlretrieve("https://raw.githubusercontent.com/ES-Alexander/ardupilot/refs/heads/mavlink-messages-rst/Tools/scripts/mavlink_parse.py", f'{self.temp_folder}/mavlink_parse.py') + # TEMP-END # Get only valid tag names tags = [