diff --git a/apps/mylib/tools.py b/apps/mylib/tools.py index 90736c3..50a1545 100644 --- a/apps/mylib/tools.py +++ b/apps/mylib/tools.py @@ -211,7 +211,7 @@ def set_multimaps(self, dirpath: Path, wp_path: Path): all_wp_yaml = read_file(wp_path) - if (not "waypoints" in wp_yaml) or (not "finish_pose" in wp_yaml): + if (not "waypoints" in all_wp_yaml) or (not "finish_pose" in all_wp_yaml): messagebox.showerror(title="Format error", message="Selected waypoints file is unexpected format.") return False map_idx = 0