def select_exe(self):
    try:
        filename = filedialog.askopenfilename(initialdir=self.exe_path)
        self.exe_path = path.dirname(path.abspath(filename))
        wbt.set_whitebox_dir(self.exe_path)
        self.refresh_tools()
    except:
        messagebox.showinfo('Warning', 'Could not find WhiteboxTools executable file.')
def select_exe(self):
    try:
        filename = filedialog.askopenfilename(initialdir=self.exe_path)
        self.exe_path = path.dirname(path.abspath(filename))
        wbt.set_whitebox_dir(self.exe_path)
        self.refresh_tools()
    except:
        messagebox.showinfo('Warning', 'Could not find WhiteboxTools executable file.')