def choose(self, event=None):
        "Show directory browser and set path as needed."
        path = self.__dialog.show()
        if path:
            # Entry is cleared before absolute path is added.
            self.__path.delete(0, tkinter.END)
            self.__path.insert(0, os.path.abspath(path))
Show directory browser and set path as needed.
recipes/Python/577632_Directory_Pruner_1/recipe-577632.py