I was wondering if there was a way to open a file that a user would download to some directory. Since I don't know what directory that could be, I want my code to do the equivalent of the CTRL+O command in order for the user to select the correct file after starting my script. Not sure if there is a way to do this though.
Asked
Active
Viewed 71 times
0
-
1What do you mean by "import"? You should probably be using the [`open`](https://docs.python.org/3/library/functions.html#open) function. – user2357112 May 18 '17 at 17:17
-
I reworded the q – dbosk May 18 '17 at 17:25
-
1I believe the question is about creating the "Open..." dialog and file picker, rather than just how to open a file. – Arya McCarthy May 18 '17 at 17:26