Some background: Currently using Python3, was wondering if it was possible (so long as the file is in the same directory as the .py file) to open a file regardless of the file name and just go by file type? In my current program I want the user to be able to drop a file such as "test.pdf" and just have my program automatically recognize the .pdf and read that file in.
Any help would be greatly appreciated.