def getClosestPoint(self, points):
        """ Return the closest point from current
        to the end point from a list of exit points """

        points2 = self.sortPoints(points)
        
        # Min distance point
        closest = points2[0]
        return closest
 Return the closest point from current
        to the end point from a list of exit points 
recipes/Python/496884_Amaze__objectoriented_maze_generatorsolver/recipe-496884.py