I wanted to know if there was a way to open files using web browser module in python, but other than the default program.
So when we right-click a file, there is an option called open with >
right? So, how can I use web browser to open with other programs.
import webbrowser
webbrowser.open_new(path of file)
When I use the above, it opens the file with the default program. So for example, if I use this to open a .txt file, it will open it in notepad as it is the default. How do I make it so that it opens with other applications like - Word or something.
Thanks for any help or suggestion!