from tkinter import Tk from tkinter.filedialog import askdirectory def get_path(): root = Tk() root.withdraw() path = askdirectory(initialdir="YOUR DI