Specify File path in tkinter File dialog Specify File path in tkinter File dialog tkinter tkinter

Specify File path in tkinter File dialog


What you want is:

root.fileName = tkFileDialog.askopenfilename(initialdir = "C:/<whatever>")

This argument will allow you to specify the directory to which the window will open up.