I'm trying to get the second filedialog call in my script to open to my local C drive, but it will only open the first call's initialdir, which is a UNC path. (Both are stored in different variables).
1: Is the following syntax correct, and is there anything I need to do to force the code to use the second call's initialdir?
filedialog.askdirectory(initialdir=r"C:\\Users\\User1\\Desktop",title='Please select a directory')
2: Also, can you have a variable in the initialdir, like this?
filedialog.askdirectory(initialdir=r"C:\\Users\\User1\\"+variable+"\UserFolder1",title='Please select a directory')