I am writing a text-based application in Python 3.9.9 in VSCode on MacOS.
I am trying to write some code that will allow the user the option to launch a text file in his/her default text editor. The text file is going to serve as a Help file that the user can launch from my application, and then close when they are done or work with side-by-side the application.
I want to include the text file in the same directory as the main python app file or in a nested directory and provide a relative path to it.
I don't need to read or update the file. I just need to launch it.
I think the OS module or subprocess module may be the way to go, but I'm having trouble making it work with either....