import os from Tkinter import Tk import tkFileDialog toplevel = Tk() toplevel.withdraw() filename = tkFileDialog.askopenfilename() print (filename)