I am trying to write a script that parses data from a folder and prompts the user to choose the folder first using: tkFileDialog.askdirectory(initialdir=" //network/folder/", parent=root)
.
However, my data are on a network folder and I can not make the initial directory to show the network folder. Code:
root=Tkinter.Tk()
root.withdraw()
dirSelected = tkFileDialog.askdirectory(initialdir=" //network/folder/", parent=root)
The initial directory on the tk ask directory dialogue will show as "My Computer" instead. But if I copy and paste the address onto the tk ask directory dialogue, my code works and can parse the data from the network folder.
Is there any way I can make the initial directory to show as my network folder? So that I don't have to copy-paste the address every time.