How to select a directory and store the location using tkinter in Python
It appears that tkFileDialog.askdirectory
should work. documentation
This code may be helpful for you.
from tkinter import filedialog
from tkinter import *
root = Tk()
root.withdraw()
folder_selected = filedialog.askdirectory()