From f5c622d0e18d13ed1b093753ece87c332cc0247e Mon Sep 17 00:00:00 2001 From: "(Tim) Efthimis Kritikos" Date: Sun, 24 Aug 2025 21:11:30 +0100 Subject: [PATCH] Fixed hard wiring of gpx directory search path --- metadata_writer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata_writer.py b/metadata_writer.py index 7aa2e5b..d76a1e9 100755 --- a/metadata_writer.py +++ b/metadata_writer.py @@ -334,7 +334,7 @@ def main(): data["geolocation_data"]["source_gnss_track_file"]["gnss_device_time_offset_seconds"]=float(gnss_device_time_offset.get()) except ValueError as e: data["geolocation_data"]["source_gnss_track_file"]["gnss_device_time_offset_seconds"]=0 - for file in os.listdir("/home/user/gnss_test/"): #TODO TODO TODO TODO + for file in os.listdir(os.path.dirname(data["constants"]["image_file_full_path"])): if file.endswith(".gpx"): #print("Trying "+str(os.path.join("/home/user/gnss_test/", file))) if try_gpx_file(os.path.join("/home/user/gnss_test/", file)) == 0: