Right now, I have this line in my code to hard-code the directory path
dir_path = \'/home/user/pywork\'
but I would rather let the user sel
One option I found after a quick google (python open directory dialog box) is to use TKinter:
python open directory dialog box
TKinter
import Tkinter, tkFileDialog root = Tkinter.Tk() dirname = tkFileDialog.askdirectory(parent=root, initialdir="/", title='Please select a directory')
I found the information here.