From ac867a3894aa8035c07da0716791f284fc2b035c Mon Sep 17 00:00:00 2001 From: Niraj Adhikari Date: Thu, 1 Aug 2024 17:44:08 +0545 Subject: [PATCH] update: return output file name --- drone_flightplan/flightplan.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drone_flightplan/flightplan.py b/drone_flightplan/flightplan.py index 35d832f..3c10b89 100644 --- a/drone_flightplan/flightplan.py +++ b/drone_flightplan/flightplan.py @@ -56,7 +56,9 @@ def add_speed_and_agl(placemark): updated_waypoints = list(map(add_speed_and_agl, waypoints)) # generate wpml file in output_file_path - create_xml(updated_waypoints, "goHome", agl, output_file_path) + output_file = create_xml(updated_waypoints, "goHome", agl, output_file_path) + + return output_file def main():