Open document with default application in Python

I need to be able to open a document using its default application in Windows and Mac OS. Basically, I want to do the same thing that happens when you double click on the document icon in Explorer or Finder. What is the best way to do this in Python?

#python #macos #windows

8 Likes12.85 GEEK