def load_gpx(self):
        # tk specific
        import tkFileDialog
        default_path = os.path.join(self._kernel.config.resources_folder(), 'sample_routes')
        filename = tkFileDialog.askopenfilename(initialdir=default_path, title="Select GPX file to load", filetypes=[("GPX", "*.GPX; *.gpx")])
        if os.path.exists(filename):
            logging.info(filename % "UI:\tloading %s")
            gpx = self._kernel.load_gpx(filename)
            # update list
            self.model.clear_waypoints()
            for route in gpx.routes:
                for point in route.points:
                    wp_str = '({0}:{1},{2})'.format(point.name, point.latitude, point.longitude)
                    logging.info(wp_str)
                    wp_str2 = '{0}  {1}, {2}    X'.format(point.name, point.latitude, point.longitude)
                    self.model.waypoints.append(wp_str2)
dataset/ETHPy150Open FishPi/FishPi-POCV---Command---Control/fishpi/ui/view_model_tk.py/MainViewController.load_gpx/swapped operands of `%`