tkinter home directory
os.path.expanduser('~')
should expand it out for you on most OSs (windows,unix)...
In other words:
home = os.path.expanduser('~')f = tkFileDialog.askopenfile(initialdir = home)
os.path.expanduser('~')
should expand it out for you on most OSs (windows,unix)...
In other words:
home = os.path.expanduser('~')f = tkFileDialog.askopenfile(initialdir = home)