Fixed hard wiring of gpx directory search path
This commit is contained in:
parent
44d5ba81ed
commit
f5c622d0e1
@ -334,7 +334,7 @@ def main():
|
|||||||
data["geolocation_data"]["source_gnss_track_file"]["gnss_device_time_offset_seconds"]=float(gnss_device_time_offset.get())
|
data["geolocation_data"]["source_gnss_track_file"]["gnss_device_time_offset_seconds"]=float(gnss_device_time_offset.get())
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
data["geolocation_data"]["source_gnss_track_file"]["gnss_device_time_offset_seconds"]=0
|
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"):
|
if file.endswith(".gpx"):
|
||||||
#print("Trying "+str(os.path.join("/home/user/gnss_test/", file)))
|
#print("Trying "+str(os.path.join("/home/user/gnss_test/", file)))
|
||||||
if try_gpx_file(os.path.join("/home/user/gnss_test/", file)) == 0:
|
if try_gpx_file(os.path.join("/home/user/gnss_test/", file)) == 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user